private void RepopulateListsFromCacheSession(IncidentCategoryVM model) { // Populate cached lists if they are empty. Will invoke service call IncidentCategoryLookupListsCacheObject CachedLists = cacheManager.IncidentCategoryListCache; // Retrieve any cached lists to model }
private IncidentCategoryLookupListsCacheObject GetIncidentCategoryAndLookups() { UcbServiceClient sc = new UcbServiceClient(); IncidentCategoryVMDC returnObject = sc.GetIncidentCategory(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); IncidentCategoryLookupListsCacheObject CachedLists = new IncidentCategoryLookupListsCacheObject(); return(CachedLists); }