public IActionResult AssignCrewToFlight(int flightId, string crewName) { var flight = StoredData.AssignCrewToFlight(flightId, crewName); return(Created("/flights/1", flight)); }
public IActionResult RemoveCrewFromFlight(int flightId, string crewName) { StoredData.RemoveCrewFromFlight(flightId, crewName); return(NoContent()); }
public IActionResult RemoveFlight(int flightId) { StoredData.RemoveFlight(flightId); return(NoContent()); }