So, as the title says, on the Apis.Get<Users>().Events.BeforeUpdate event handler I get the already updated user data.
I'm changing the user's private email address and I'd like to get the email before and after the user was update in order to check if the email was update or some other field was updated, but the modified email is already in the BeforeUpdate handler's user parameter.
Is this bugged or why is it not returning the user before it was updated?
Before simply is before its committed to the DB, its already altered just not saved. After would be after commit. In your before handler, to compare, do a Apis.Get<IUsers>().Get(...) to compare whats currently in the DB to whats about to be committed.
I'll try that
Powered by Telligent Community