Ejemplo n.º 1
0
        public IActionResult AssignCrewToFlight(int flightId, string crewName)
        {
            var flight = StoredData.AssignCrewToFlight(flightId, crewName);

            return(Created("/flights/1", flight));
        }
Ejemplo n.º 2
0
 public IActionResult RemoveCrewFromFlight(int flightId, string crewName)
 {
     StoredData.RemoveCrewFromFlight(flightId, crewName);
     return(NoContent());
 }
Ejemplo n.º 3
0
 public IActionResult RemoveFlight(int flightId)
 {
     StoredData.RemoveFlight(flightId);
     return(NoContent());
 }