Esempio n. 1
0
 public async Task <IActionResult> Delete(int id)
 {
     try
     {
         await departureService.DeleteEntityAsync(id);
     }
     catch (ValidationException e)
     {
         return(BadRequest(new { Exception = e.Message }));
     }
     return(NoContent());
 }