Exemple #1
0
 public ActionResult <UserDto> Update([FromBody] UserDto dto)
 {
     try
     {
         return(_bl.Update(dto));
     }
     catch (KeyNotFoundException ex)
     {
         return(NotFound(ex.Message));
     }
     catch (Exception ex)
     {
         return(Conflict(ex.Message));
     }
 }