public IList <Flight> GetAllAirLineCompaniesFlights(LoginToken <AirLineCompany> token)
 {
     return(_flightDAO.GetFlightsByAirLineCompany(token.User));
 }
Esempio n. 2
0
 public AirLineCompany GetAirLineCompanyByName(LoginToken <Administrator> token, string name)
 {
     return(_airLineDAO.GetAirLineCompanyByName(name));
 }
 public Ticket GetTicketByAllParametrs(LoginToken <Customer> token, int flightId, int customerId)
 {
     return(_ticketDAO.GetTicketByAllParametrs(flightId, customerId));
 }
Esempio n. 4
0
 public void RemoveAirLine(LoginToken <Administrator> token, AirLineCompany comp)
 {
     _airLineDAO.Remove(comp);
 }
Esempio n. 5
0
 public void UpdateAirLineDetails(LoginToken <Administrator> token, AirLineCompany comp)
 {
     _airLineDAO.Update(comp);
 }
Esempio n. 6
0
 public FlightStatus GetFlightStatusById(LoginToken <Administrator> token, int id)
 {
     return(_flightStatusDAO.Get(id));
 }
Esempio n. 7
0
        public int CreateNewCustomer(LoginToken <Administrator> token, Customer customer)
        {
            int res = _customerDAO.Add(customer);

            return(res);
        }
        public IList <Ticket> GetAllTicketByFlight(LoginToken <AirLineCompany> token, Flight flight)
        {
            IList <Ticket> listTickets = _ticketDAO.GetTicketsByFlight(flight.id);

            return(listTickets);
        }
 public void RemoveTicket(LoginToken <AirLineCompany> token, Ticket ticket)
 {
     _ticketDAO.Remove(ticket);
 }
 public Country GetCountryByName(LoginToken <AirLineCompany> token, string countryName)
 {
     return(_countryDAO.GetByName(countryName));
 }
 public FlightStatus GetFlightStatusByName(LoginToken <AirLineCompany> token, string statusName)
 {
     return(_flightStatusDAO.GetFlightStatusByName(statusName));
 }
 public Flight GetFlightByID(LoginToken <AirLineCompany> token, int id)
 {
     return(_flightDAO.GetFlightById(id));
 }
 public void UpdateFlight(LoginToken <AirLineCompany> token, Flight flight)
 {
     _flightDAO.Update(flight);
 }
 public void ModifyAirLineDetails(LoginToken <AirLineCompany> token, AirLineCompany airline)
 {
     _airLineDAO.Update(airline);
 }
Esempio n. 15
0
        public bool CheckIfAirlinesTableIsEmpty(LoginToken <Administrator> token)
        {
            bool res = _airLineDAO.IfTableAirlinesIsEmpty();

            return(res);
        }
 public FlightStatus GetFlightstatusById(LoginToken <AirLineCompany> token, int id)
 {
     return(_flightStatusDAO.Get(id));
 }
Esempio n. 17
0
        public int CreateFlightStatus(LoginToken <Administrator> token, FlightStatus flStatus)
        {
            int res = _flightStatusDAO.Add(flStatus);

            return(res);
        }
Esempio n. 18
0
        public int CreateCountry(LoginToken <Administrator> token, Country country)
        {
            int res = _countryDAO.Add(country);

            return(res);
        }
Esempio n. 19
0
 public Country GetCountry(LoginToken <Administrator> token, int id)
 {
     return(_countryDAO.Get(id));
 }
Esempio n. 20
0
        public Country GetCountryByName(LoginToken <Administrator> token, string name)
        {
            Country country = _countryDAO.GetByName(name);

            return(country);
        }
Esempio n. 21
0
 public Customer GetCustomerByUserName(LoginToken <Administrator> token, string userName)
 {
     return(_customerDAO.GetCustomerByUserName(userName));
 }
Esempio n. 22
0
 public AirLineCompany GetAirLineCompanyById(LoginToken <Administrator> token, int id)
 {
     return(_airLineDAO.Get(id));
 }
Esempio n. 23
0
 public void RemoveCustomer(LoginToken <Administrator> token, Customer customer)
 {
     _customerDAO.Remove(customer);
 }
Esempio n. 24
0
        public int CreateNewairLine(LoginToken <Administrator> token, AirLineCompany comp)
        {
            int res = _airLineDAO.Add(comp);

            return(res);
        }
Esempio n. 25
0
 public void UpdateCustomerDetails(LoginToken <Administrator> token, Customer customer)
 {
     _customerDAO.Update(customer);
 }
Esempio n. 26
0
 public Customer GetCustomerByid(LoginToken <Administrator> token, int id)
 {
     return(_customerDAO.Get(id));
 }
 public Flight GetFlightByIdFlight(LoginToken <Customer> token, int id)
 {
     return(_ticketDAO.GetFlightById(id));
 }
Esempio n. 28
0
        public bool CheckIfCustomersTableIsEmpty(LoginToken <Administrator> token)
        {
            bool res = _customerDAO.IfTableCustomersIsEmpty();

            return(res);
        }
 public void ChangeMyPassword(LoginToken <Customer> token, string oldPassword, string newPassword)
 {
     _customerDAO.ChangeMyPassword(token.User, oldPassword, newPassword);
 }
        public int CreateFlight(LoginToken <AirLineCompany> token, Flight flight)
        {
            int res = _flightDAO.Add(flight);

            return(res);
        }