Esempio n. 1
0
        public IList <AirlineCompany> GetAllAirlineCompanies()
        {
            IList <AirlineCompany> airlineCompanies;

            Flights_project.AirLineDAOMSSQL dao = new AirLineDAOMSSQL();
            airlineCompanies = dao.GetAll();
            return(airlineCompanies);
        }
Esempio n. 2
0
 public AirlineCompany GetAirLineByUserName(LoginToken <Administrator> token, string name)
 {
     if (token != null && token.User != null)
     {
         AirLineDAOMSSQL airLineDAOMSSQL = new AirLineDAOMSSQL();
         return(airLineDAOMSSQL.GetAirLineByUserName(name));
     }
     return(null);
 }