private void RepopulateListsFromCacheSession(AuditVM model) { // Populate cached lists if they are empty. Will invoke service call AuditLookupListsCacheObject CachedLists = CacheManager.AuditListCache; // Retrieve any cached lists to model }
private static AuditLookupListsCacheObject GetAuditAndLookups() { AdminServiceClient sc = new AdminServiceClient(); AuditVMDC returnObject = sc.GetAudit(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); AuditLookupListsCacheObject CachedLists = new AuditLookupListsCacheObject(); return(CachedLists); }