private AttachmentDataLookupListsCacheObject GetAttachmentDataAndLookups() { UcbServiceClient sc = new UcbServiceClient(); AttachmentDataVMDC returnObject = sc.GetAttachmentData(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null); AttachmentDataLookupListsCacheObject CachedLists = new AttachmentDataLookupListsCacheObject(); CachedLists.AttachmentList = Mapper.Map <IEnumerable <AttachmentDC>, List <AttachmentModel> >(returnObject.AttachmentList); return(CachedLists); }