Exemplo n.º 1
0
        private SiteStaffLookupListsCacheObject GetSiteStaffAndLookups()
        {
            UcbServiceClient sc           = new UcbServiceClient();
            SiteStaffVMDC    returnObject = sc.GetSiteStaff(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null);

            SiteStaffLookupListsCacheObject CachedLists = new SiteStaffLookupListsCacheObject();

            CachedLists.SiteList  = Mapper.Map <IEnumerable <SiteDC>, List <SiteModel> >(returnObject.SiteList);
            CachedLists.StaffList = Mapper.Map <IEnumerable <StaffDC>, List <StaffModel> >(returnObject.StaffList);
            return(CachedLists);
        }