public override MembershipUser GetUser(object providerUserKey, bool userIsOnline) { var user = DbEntryMembershipUser.FindById((long)providerUserKey); user.LastActivityDate = DateTime.Now; user.Save(); return(user.ToMembershipUser()); }
public override void UpdateUser(MembershipUser user) { var u = DbEntryMembershipUser.FindById((long)user.ProviderUserKey); if (u != null) { u.Email = user.Email; u.PasswordQuestion = user.PasswordQuestion; u.IsApproved = user.IsApproved; u.Comment = user.Comment; u.Save(); } }