Example #1
0
 public IActionResult Delete(int id)
 {
     try
     {
         airport.DeletePilot(id);
         return(Ok());
     }
     catch (System.Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }