public void Delete(int id)
 {
     try
     {
         pilotService.DeletePilot(id);
     }
     catch (System.Exception)
     {
         HttpContext.Response.StatusCode = 404;
     }
 }
Beispiel #2
0
 public async Task Delete(int id)
 {
     try
     {
         await pilotService.DeletePilot(id);
     }
     catch (System.Exception)
     {
         HttpContext.Response.StatusCode = 404;
     }
 }