public IEnumerable <StudentDrillDownQuery> GetStudentMultipleEnrollmentsDrilldownData( IOdsDataService odsDataService, OrgType orgType, int?schoolId, int edOrgId, int drillDownColumnIndex, string fourDigitSchoolYear) { var cacheKey = $"GetStudentMultipleEnrollmentsDrilldownData_{orgType}_{schoolId}_{edOrgId}_{drillDownColumnIndex}_{fourDigitSchoolYear}"; lock (LockObject) { // if (!Cache.Contains(cacheKey)) { var results = odsDataService.GetMultipleEnrollmentStudentDrillDown( orgType, schoolId, edOrgId, drillDownColumnIndex, fourDigitSchoolYear); Cache.Add(cacheKey, results, CacheExpirationOffset); } return(Cache.Get(cacheKey) as IEnumerable <StudentDrillDownQuery>); } }
public IEnumerable <StudentProgramsCountReportQuery> GetStudentProgramsCounts( IOdsDataService odsDataService, int?edOrgId, string fourDigitSchoolYear) { var cacheKey = $"GetStudentProgramsCounts_{edOrgId}_{fourDigitSchoolYear}"; lock (LockObject) { if (!Cache.Contains(cacheKey)) { var results = odsDataService.GetStudentProgramsCounts(edOrgId, fourDigitSchoolYear); Cache.Add(cacheKey, results, CacheExpirationOffset); } return(Cache.Get(cacheKey) as IEnumerable <StudentProgramsCountReportQuery>); } }
public HomeController( IAnnouncementService announcementService, IAppUserService appUserService, IEdOrgService edOrgService, ISchoolYearService schoolYearService, IOdsDataService odsDataService, ISubmissionCycleService submissionCycleService, IRecordsRequestService recordsRequestService, IConfigurationValues configurationValues) { AnnouncementService = announcementService; AppUserService = appUserService; EdOrgService = edOrgService; SchoolYearService = schoolYearService; OdsDataService = odsDataService; SubmissionCycleService = submissionCycleService; RecordsRequestService = recordsRequestService; ConfigurationValues = configurationValues; }
public IEnumerable <ChangeOfEnrollmentReportQuery> GetChangeOfEnrollmentReport( IOdsDataService odsDataService, int edOrgId, string fourDigitSchoolYear) { var cacheKey = $"GetChangeOfEnrollmentReport_{edOrgId}_{fourDigitSchoolYear}"; lock (LockObject) { if (!Cache.Contains(cacheKey)) { var results = odsDataService.GetChangeOfEnrollmentReport( edOrgId, fourDigitSchoolYear); Cache.Add(cacheKey, results, CacheExpirationOffset); } return(Cache.Get(cacheKey) as IEnumerable <ChangeOfEnrollmentReportQuery>); } }
public IEnumerable <DemographicsCountReportQuery> GetDistrictAncestryRaceCounts( IOdsDataService odsDataService, bool isStateMode, int?edOrgId, string fourDigitSchoolYear) { var cacheKey = $"DistrictAncestryRaceCounts_{isStateMode}_{edOrgId}_{fourDigitSchoolYear}"; lock (LockObject) { if (!Cache.Contains(cacheKey)) { var results = odsDataService.GetDistrictAncestryRaceCounts( isStateMode ? null : edOrgId, fourDigitSchoolYear); Cache.Add(cacheKey, results, CacheExpirationOffset); } return(Cache.Get(cacheKey) as IEnumerable <DemographicsCountReportQuery>); } }
public IEnumerable <StudentDrillDownQuery> GetResidentsEnrolledElsewhereStudentDrillDown( IOdsDataService odsDataService, OrgType orgType, int?schoolId, int edOrgId, int drillDownColumnIndex, string fourDigitSchoolYear) { var cacheKey = $"GetResidentsEnrolledElsewhereStudentDrillDown_{orgType}_{schoolId}_{edOrgId}_{drillDownColumnIndex}_{fourDigitSchoolYear}"; lock (LockObject) { if (!Cache.Contains(cacheKey)) { var results = odsDataService.GetResidentsEnrolledElsewhereStudentDrillDown( edOrgId, fourDigitSchoolYear); Cache.Add(cacheKey, results, CacheExpirationOffset); } return(Cache.Get(cacheKey) as IEnumerable <StudentDrillDownQuery>); } }