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); }
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); }
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); }