private StaffAttributesLookupListsCacheObject GetStaffAttributesAndLookups() { UcbServiceClient sc = new UcbServiceClient(); StaffAttributesVMDC returnObject = sc.GetStaffAttributes(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); StaffAttributesLookupListsCacheObject CachedLists = new StaffAttributesLookupListsCacheObject(); CachedLists.StaffList = Mapper.Map <IEnumerable <StaffDC>, List <StaffModel> >(returnObject.StaffList); CachedLists.ApplicationList = Mapper.Map <IEnumerable <ApplicationDC>, List <ApplicationModel> >(returnObject.ApplicationList); CachedLists.ApplicationAttributeList = Mapper.Map <IEnumerable <ApplicationAttributeDC>, List <ApplicationAttributeModel> >(returnObject.ApplicationAttributeList); return(CachedLists); }