AJH.CMS.Core.Data.UserManager.Update C# (CSharp) 메소드

Update() 공개 정적인 메소드

public static Update ( User user ) : void
user AJH.CMS.Core.Entities.User
리턴 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);
        }