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