예제 #1
0
 public static User From(UserNew userNew)
 {
     return(new User()
     {
         Profile = userNew.Profile,
         Account = new UserAccount()
         {
             Credentials = new Credentials()
             {
                 Email = userNew.Email,
                 PasswordHash = userNew.PasswordHash
             }
         }
     });
 }
예제 #2
0
 public async Task RegisterAsync(UserNew newUser)
 {
     var user = User.From(newUser);
     await _userRepository.AddAsync(user);
 }