private void RepopulateListsFromCacheSession(CountryVM model) { // Populate cached lists if they are empty. Will invoke service call CountryLookupListsCacheObject CachedLists = CacheManager.CountryListCache; // Retrieve any cached lists to model }
private static CountryLookupListsCacheObject GetCountryAndLookups() { AdminServiceClient sc = new AdminServiceClient(); CountryVMDC returnObject = sc.GetCountry(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); CountryLookupListsCacheObject CachedLists = new CountryLookupListsCacheObject(); return(CachedLists); }