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