AssessmentAnywhere.Services.Users.UserRepo.Create C# (CSharp) 메소드

Create() 공개 메소드

public Create ( string username, string password, string emailAddress ) : IUser
username string
password string
emailAddress string
리턴 IUser
        public IUser Create(string username, string password, string emailAddress)
        {
            var newUser = new User(username, password, emailAddress);
            if (EmailAddressExists(emailAddress))
            {
                throw new EmailAddressDuplicateException();
            }

            Users.Add(username.ToLower(), newUser);
            return newUser;
        }