private void RepopulateListsFromCacheSession(StaffOfficesVM model) { // Populate cached lists if they are empty. Will invoke service call StaffOfficesLookupListsCacheObject CachedLists = CacheManager.StaffOfficesListCache; // Retrieve any cached lists to model }
private static StaffOfficesLookupListsCacheObject GetStaffOfficesAndLookups() { AdminServiceClient sc = new AdminServiceClient(); StaffOfficesVMDC returnObject = sc.GetStaffOffices(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); StaffOfficesLookupListsCacheObject CachedLists = new StaffOfficesLookupListsCacheObject(); return(CachedLists); }