Example #1
0
 public async Task <IActionResult> Add(string password, UserModel user)
 {
     try
     {
         return(Ok(await _aspNetUsersService.AddAsync(user, password)));
     }
     catch (ValidationException exception)
     {
         return(BadRequest(exception.Message));
     }
 }