Пример #1
0
        public IActionResult AssignCrewToFlight(int flightId, string crewName)
        {
            var flight = StoredData.AssignCrewToFlight(flightId, crewName);

            return(Created("/flights/1", flight));
        }
Пример #2
0
 public IActionResult RemoveCrewFromFlight(int flightId, string crewName)
 {
     StoredData.RemoveCrewFromFlight(flightId, crewName);
     return(NoContent());
 }
Пример #3
0
 public IActionResult RemoveFlight(int flightId)
 {
     StoredData.RemoveFlight(flightId);
     return(NoContent());
 }