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