Exemple #1
0
 public void AddNewUser(string firstName, string lastName, DateTime birthDate, string gender, string email,
                        string address, string postalCode, string city, string password, string accountType) =>
 context.AddNewUser(firstName, lastName, birthDate, gender, email, address, postalCode, city, password,
                    accountType);
        public void AddNewUser(User newUser)
        {
            newUser.Password = Hasher.SecurePasswordHasher.Hash(newUser.Password);

            _user.AddNewUser(newUser);
        }
 public void AddNewUser(User newUser, string password) =>
 context.AddNewUser(newUser, password);