Ejemplo n.º 1
0
 public IActionResult DeleteFlight(string id)
 {
     if (_flightsManager.DeleteFlightPlan(id))
     {
         return(Ok());
     }
     return(BadRequest(new Error("Could not delete flight.")));
 }
Ejemplo n.º 2
0
 public ActionResult DeleteFlight(string id)
 {
     if (myFlightsManager.DeleteFlightPlan(id))
     {
         return(Ok());
     }
     // if the flight was not found
     return(NotFound("Flight wasn't found"));
 }