Example #1
0
 public void Post(string oOrf, [FromBody] Flight f)
 {
     if (oOrf == "f")
     {
         Flight.flightList.Add(f);
         Flight.AddFlightToDB(f);
     }
     else
     {
         Flight.AddOFlightToDB(f);
     }
 }