public BookingViewingBLL()
 {
     MenuRepository = new MenuRepository();
     RestaurantBookingRepository    = new RestaurantBookingRepository();
     AgencyRepository               = new AgencyRepository();
     CommissionRepository           = new CommissionRepository();
     ServiceOutsideRepository       = new ServiceOutsideRepository();
     GuideRepository                = new GuideRepository();
     AgencyContactRepository        = new AgencyContactRepository();
     ServiceOutsideDetailRepository = new ServiceOutsideDetailRepository();
 }
 public void Dispose()
 {
     if (MenuRepository != null)
     {
         MenuRepository.Dispose();
         MenuRepository = null;
     }
     if (RestaurantBookingRepository != null)
     {
         RestaurantBookingRepository.Dispose();
         RestaurantBookingRepository = null;
     }
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
     if (CommissionRepository != null)
     {
         CommissionRepository.Dispose();
         CommissionRepository = null;
     }
     if (ServiceOutsideRepository != null)
     {
         ServiceOutsideRepository.Dispose();
         ServiceOutsideRepository = null;
     }
     if (GuideRepository != null)
     {
         GuideRepository.Dispose();
         GuideRepository = null;
     }
     if (AgencyContactRepository != null)
     {
         AgencyContactRepository.Dispose();
         AgencyContactRepository = null;
     }
     if (ServiceOutsideDetailRepository != null)
     {
         ServiceOutsideDetailRepository.Dispose();
         ServiceOutsideDetailRepository = null;
     }
 }
 public void ServiceOutsideDelete(ServiceOutside serviceOutside)
 {
     ServiceOutsideRepository.Delete(serviceOutside);
 }
 public IList <ServiceOutside> ServiceOutsideGetAllByBookingId(int restaurantBookingId)
 {
     return(ServiceOutsideRepository.ServiceOutsideGetAllByBookingId(restaurantBookingId));
 }
 public void ServiceOutsideSaveOrUpdate(ServiceOutside serviceOutside)
 {
     ServiceOutsideRepository.SaveOrUpdate(serviceOutside);
 }
 public ServiceOutside ServiceOutsideGetById(int serviceOutsideId)
 {
     return(ServiceOutsideRepository.GetById(serviceOutsideId));
 }