Пример #1
0
 public async Task <ActionResult <AdministratorDTO> > EditAdmin(AdministratorDTO AdministratorDTO)
 {
     try
     {
         await userService.UpdateUser(AdministratorDTO);
     }
     catch (ValidationException ex)
     {
         return(Content(ex.Message));
     }
     return(Ok(AdministratorDTO));
 }
Пример #2
0
        public async Task <ActionResult <GetUserDTO> > EditUser(GetUserDTO GetUserDTO)
        {
            await userService.UpdateUser(GetUserDTO);

            return(Ok(GetUserDTO));
        }