예제 #1
0
 public IActionResult Delete(int id)
 {
     try
     {
         crewService.DeleteEntity(id);
     }
     catch (ValidationException e)
     {
         return(BadRequest(new { Exception = e.Message }));
     }
     return(NoContent());
 }