public IList <Flights> GetAllFlights(LoginToken <AirlineCompanies> token) { IList <Flights> flights = new List <Flights>(); if (_flightDAO != null) { flights = _flightDAO.GetAll(); } else { _flightDAO = new FlightsDAOPGSQL(); flights = _flightDAO.GetAll(); } return(flights); }
public IList <Flights> GetAllFlights() { IList <Flights> flights = new List <Flights>(); if (_flightDAO != null) { flights = _flightDAO.GetAll(); } else { _flightDAO = new FlightsDAOPGSQL(); flights = _flightDAO.GetAll(); } return(flights); }
public IList <Flights> GetAllMyFlights(LoginToken <Customers> token) { IList <Flights> flights = new List <Flights>(); if (token != null) { if (_flightDAO != null) { flights = _flightDAO.GetAll(); } else { _flightDAO = new FlightsDAOPGSQL(); flights = _flightDAO.GetAll(); } } return(flights); }