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

Add() public static method

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

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

            return UserDataMapper.Add(user);
        }