public IList <Flight> GetAllAirLineCompaniesFlights(LoginToken <AirLineCompany> token)
 {
     return(_flightDAO.GetFlightsByAirLineCompany(token.User));
 }
Пример #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));
 }
Пример #4
0
 public void RemoveAirLine(LoginToken <Administrator> token, AirLineCompany comp)
 {
     _airLineDAO.Remove(comp);
 }
Пример #5
0
 public void UpdateAirLineDetails(LoginToken <Administrator> token, AirLineCompany comp)
 {
     _airLineDAO.Update(comp);
 }
Пример #6
0
 public FlightStatus GetFlightStatusById(LoginToken <Administrator> token, int id)
 {
     return(_flightStatusDAO.Get(id));
 }
Пример #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);
 }
Пример #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));
 }
Пример #17
0
        public int CreateFlightStatus(LoginToken <Administrator> token, FlightStatus flStatus)
        {
            int res = _flightStatusDAO.Add(flStatus);

            return(res);
        }
Пример #18
0
        public int CreateCountry(LoginToken <Administrator> token, Country country)
        {
            int res = _countryDAO.Add(country);

            return(res);
        }
Пример #19
0
 public Country GetCountry(LoginToken <Administrator> token, int id)
 {
     return(_countryDAO.Get(id));
 }
Пример #20
0
        public Country GetCountryByName(LoginToken <Administrator> token, string name)
        {
            Country country = _countryDAO.GetByName(name);

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

            return(res);
        }
Пример #25
0
 public void UpdateCustomerDetails(LoginToken <Administrator> token, Customer customer)
 {
     _customerDAO.Update(customer);
 }
Пример #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));
 }
Пример #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);
        }