MemberServiceSave returns member with empty properties
Hi,
I use Umbraco V7 and I've a problem with the MemberServiceSave method. I want to send a mail after creating a member with its properties.
When I create a new member and I save it, I enter the MemberServiceSave method but the currentMember contains properties with null values. The member is correctly created.
I've tried with ContentServiceSave method and it worked. I get the properties of the content saved.
Here is my code :
Private Sub MemberServiceSave(Sender As IMemberService, args As SaveEventArgs(Of IMember))
Dim currentMember As Member = args.SavedEntities.FirstOrDefault()
SendMailMember(currentMember)
End If
End Sub
MemberServiceSave returns member with empty properties
Hi,
I use Umbraco V7 and I've a problem with the MemberServiceSave method. I want to send a mail after creating a member with its properties. When I create a new member and I save it, I enter the MemberServiceSave method but the currentMember contains properties with null values. The member is correctly created.
I've tried with ContentServiceSave method and it worked. I get the properties of the content saved.
Here is my code :
Thanks for your help
Up! Does someone have a solution please ?
I solved my problem.
Actually, when a member is created, the saved event is called 3 times, eventually the properties are set.
is working on a reply...