private void RepopulateListsFromCacheSession(NonStandardHolidayVM model) { // Populate cached lists if they are empty. Will invoke service call NonStandardHolidayLookupListsCacheObject CachedLists = CacheManager.NonStandardHolidayListCache; // Retrieve any cached lists to model }
private static NonStandardHolidayLookupListsCacheObject GetNonStandardHolidayAndLookups() { AdminServiceClient sc = new AdminServiceClient(); NonStandardHolidayVMDC returnObject = sc.GetNonStandardHoliday(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); NonStandardHolidayLookupListsCacheObject CachedLists = new NonStandardHolidayLookupListsCacheObject(); return(CachedLists); }