예제 #1
0
 public void Create(RegistrationDto userModel)
 {
     userService.CreateUser(userModel.UserName);
 }
예제 #2
0
 private RegistrationDto RegisterViewModelMapToUserDto(RegisterViewModel registerViewModel)
 {
     var userDto = new RegistrationDto
     {
         UserName=registerViewModel.Username,
         Password=registerViewModel.Password,
         ConfirmPassword=registerViewModel.ConfirmPassword
     };
     return userDto;
 }