public async Task <ActionResult <AdministratorDTO> > EditAdmin(AdministratorDTO AdministratorDTO) { try { await userService.UpdateUser(AdministratorDTO); } catch (ValidationException ex) { return(Content(ex.Message)); } return(Ok(AdministratorDTO)); }
public async Task <ActionResult <GetUserDTO> > EditUser(GetUserDTO GetUserDTO) { await userService.UpdateUser(GetUserDTO); return(Ok(GetUserDTO)); }