public void Dispose() { if (BookingRepository != null) { BookingRepository.Dispose(); BookingRepository = null; } if (TripRepository != null) { TripRepository.Dispose(); TripRepository = null; } if (CruiseRepository != null) { CruiseRepository.Dispose(); CruiseRepository = null; } if (AgencyRepository != null) { AgencyRepository.Dispose(); AgencyRepository = null; } if (BookingRoomRepository != null) { BookingRoomRepository.Dispose(); BookingRoomRepository = null; } if (BookingHistoryRepository != null) { BookingHistoryRepository.Dispose(); BookingHistoryRepository = null; } if (LockedRepository != null) { LockedRepository.Dispose(); LockedRepository = null; } if (CustomerRepository != null) { CustomerRepository.Dispose(); CustomerRepository = null; } if (UserBLL != null) { UserBLL.Dispose(); UserBLL = null; } if (SeriesRepository != null) { SeriesRepository.Dispose(); SeriesRepository = null; } if (BusTypeRepository != null) { BusTypeRepository.Dispose(); BusTypeRepository = null; } }
public BookingViewBLL() { BookingRepository = new BookingRepository(); TripRepository = new TripRepository(); CruiseRepository = new CruiseRepository(); AgencyRepository = new AgencyRepository(); BookingRoomRepository = new BookingRoomRepository(); BookingHistoryRepository = new BookingHistoryRepository(); LockedRepository = new LockedRepository(); CustomerRepository = new CustomerRepository(); UserUtil = new UserUtil(); }
public BookingViewBLL() { BookingRepository = new BookingRepository(); TripRepository = new TripRepository(); CruiseRepository = new CruiseRepository(); AgencyRepository = new AgencyRepository(); BookingRoomRepository = new BookingRoomRepository(); BookingHistoryRepository = new BookingHistoryRepository(); LockedRepository = new LockedRepository(); CustomerRepository = new CustomerRepository(); UserBLL = new UserBLL(); SeriesRepository = new SeriesRepository(); BusTypeRepository = new BusTypeRepository(); }
public void Dispose() { if (BookingRepository != null) { BookingRepository.Dispose(); BookingRepository = null; } if (TripRepository != null) { TripRepository.Dispose(); TripRepository = null; } if (CruiseRepository != null) { CruiseRepository.Dispose(); CruiseRepository = null; } if (AgencyRepository != null) { AgencyRepository.Dispose(); AgencyRepository = null; } if (BookingRoomRepository != null) { BookingRoomRepository.Dispose(); BookingRoomRepository = null; } if (BookingHistoryRepository != null) { BookingHistoryRepository.Dispose(); BookingHistoryRepository = null; } if (LockedRepository != null) { LockedRepository.Dispose(); LockedRepository = null; } if (CustomerRepository != null) { CustomerRepository.Dispose(); CustomerRepository = null; } if (UserUtil != null) { UserUtil.Dispose(); UserUtil = null; } }
public IList <Locked> LockedGetBy(DateTime?startDate, DateTime?endDate, int cruiseId) { return(LockedRepository.LockedGetBy(startDate, endDate, cruiseId)); }