public static MembershipUser ToMembershipUser(PlayerCorporation player) { var user = new MembershipUser("XmlMembershipProvider", player.Username, player.ID, player.Email, null, null, player.IsApproved, player.IsLockedOut, player.CreateDate, player.LastLoginDate ?? DateTime.MinValue, player.LastActivityDate ?? DateTime.MinValue, player.LastPasswordChangeDate ?? DateTime.MinValue, player.LastLockoutDate ?? DateTime.MinValue); return user; }
public static void Update(PlayerCorporation player) { player.LastActivityDate = DateTime.Now; player.PasswordAttempts = 0; }