public void Dispose()
 {
     if (RestaurantBookingRepository != null)
     {
         RestaurantBookingRepository.Dispose();
         RestaurantBookingRepository = null;
     }
     if (AgencyRepository != null)
     {
         AgencyRepository.Dispose();
         AgencyRepository = null;
     }
 }
 public void Dispose()
 {
     if (RestaurantBookingRepository != null)
     {
         RestaurantBookingRepository.Dispose();
         RestaurantBookingRepository = null;
     }
     if (PaymentHistoryRepository != null)
     {
         PaymentHistoryRepository.Dispose();
         PaymentHistoryRepository = null;
     }
 }
 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;
     }
 }