public DashBoardManagerBLL() { StoreProcedureRepository = new StoreProcedureRepository(); CruiseRepository = new CruiseRepository(); BookingRepository = new BookingRepository(); AgencyRepository = new AgencyRepository(); AgencyContactRepository = new AgencyContactRepository(); ActivityRepository = new ActivityRepository(); UserRepository = new UserRepository(); }
public void Dispose() { if (StoreProcedureRepository != null) { StoreProcedureRepository.Dispose(); StoreProcedureRepository = null; } if (CruiseRepository != null) { CruiseRepository.Dispose(); CruiseRepository = null; } if (BookingRepository != null) { BookingRepository.Dispose(); BookingRepository = null; } if (AgencyRepository != null) { AgencyRepository.Dispose(); AgencyRepository = null; } if (AgencyContactRepository != null) { AgencyContactRepository.Dispose(); AgencyContactRepository = null; } if (ActivityRepository != null) { ActivityRepository.Dispose(); ActivityRepository = null; } if (UserRepository != null) { UserRepository.Dispose(); UserRepository = null; } }
public IEnumerable <SalesMonthSummaryDTO> GetSalesMonthSummary(DateTime from, DateTime to) { return(StoreProcedureRepository.GetSalesMonthSummary(from, to)); }
public IEnumerable <AgencyNotVisitedUpdatedDTO> GetAgenciesNotVistedUpdatedLast2Month(int salesId) { return(StoreProcedureRepository.GetAgenciesNotVisitedUpdatedLast2Month(salesId)); }
public IEnumerable <AgencySendNoBookingDTO> GetAgenciesSendNoBookingLast3Month(int salesId) { return(StoreProcedureRepository.GetAgenciesSendNoBookingLast3Month(salesId)); }
public IEnumerable <Top10AgenciesDTO> AgencyGetTop10(DateTime from, DateTime to) { return(StoreProcedureRepository.AgencyGetTop10(from, to)); }