示例#1
0
        public IList <tbl_Flight> getAll()
        {
            db_AirportEntities db      = new db_AirportEntities();
            IList <tbl_Flight> flights = new List <tbl_Flight>();

            foreach (var Flight in db.tbl_Flight)
            {
                flights.Add(Flight);
            }
            return(flights);
        }
示例#2
0
        public IList <tbl_Flight> getArrives()
        {
            db_AirportEntities db      = new db_AirportEntities();
            IList <tbl_Flight> flights = new List <tbl_Flight>();

            foreach (var Flight in db.tbl_Flight)
            {
                if (Flight.ToCity.Equals(937))
                {
                    flights.Add(Flight);
                }
            }
            return(flights);
        }
示例#3
0
        public IList <tbl_Flight> getDepartures()
        {
            db_AirportEntities db      = new db_AirportEntities();
            IList <tbl_Flight> flights = new List <tbl_Flight>();

            foreach (var Flight in db.tbl_Flight)
            {
                if (Flight.FromCity.Equals(1217))
                {
                    flights.Add(Flight);
                }
            }
            return(flights);
        }