// POST api/<controller> public void Post([FromBody] Flights flight) { flight.InsertFlight(); flight.InsertFlightLegs(); }