AJH.CMS.Core.Data.UserManager.Update C# (CSharp) Method

Update() public static method

public static Update ( User user ) : void
user AJH.CMS.Core.Entities.User
return void
        public static void Update(User user)
        {
            user.Name = user.Email;

            User user2 = GetUser(user.Email);
            if (user2 != null && user2.ID != user.ID)
                throw new Exception("There is another user has the same e-mail, please choose another e-mail");

            UserDataMapper.Update(user);
        }