示例#1
0
        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);
        }
示例#2
0
        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);
        }