private void RepopulateListsFromCacheSession(HolidayVM model) { // Populate cached lists if they are empty. Will invoke service call HolidayLookupListsCacheObject CachedLists = CacheManager.HolidayListCache; // Retrieve any cached lists to model }
private static HolidayLookupListsCacheObject GetHolidayAndLookups() { AdminServiceClient sc = new AdminServiceClient(); HolidayVMDC returnObject = sc.GetHoliday(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); HolidayLookupListsCacheObject CachedLists = new HolidayLookupListsCacheObject(); return(CachedLists); }