Пример #1
0
        public static void SaveFlight(FlightDAO flight)
        {
            Flight f = new Flight();

            f.Arriving_Time        = flight.Arriving_Time;
            f.Departure_aeroport   = flight.Departure_aeroport;
            f.Departure_Time       = flight.Departure_Time;
            f.Destination_aeroport = flight.Destination_aeroport;
            f.FlightNumber         = flight.FlightNumber;

            db.Flights.Add(f);
            db.SaveChanges();
        }
Пример #2
0
 public static void AddFlight(FlightDAO flight)
 {
     FlightDAL.SaveFlight(flight);
 }