private void RepopulateListsFromCacheSession(OrganisationTypeGroupVM model) { // Populate cached lists if they are empty. Will invoke service call OrganisationTypeGroupLookupListsCacheObject CachedLists = CacheManager.OrganisationTypeGroupListCache; // Retrieve any cached lists to model }
private OrganisationTypeGroupLookupListsCacheObject GetOrganisationTypeGroupAndLookups() { UcbServiceClient sc = new UcbServiceClient(); OrganisationTypeGroupVMDC returnObject = sc.GetOrganisationTypeGroup(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); OrganisationTypeGroupLookupListsCacheObject CachedLists = new OrganisationTypeGroupLookupListsCacheObject(); return(CachedLists); }