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