Exemplo n.º 1
0
        private CustomerControlMeasureLookupListsCacheObject GetCustomerControlMeasureAndLookups()
        {
            UcbServiceClient           sc           = new UcbServiceClient();
            CustomerControlMeasureVMDC returnObject = sc.GetCustomerControlMeasure(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null);

            CustomerControlMeasureLookupListsCacheObject CachedLists = new CustomerControlMeasureLookupListsCacheObject();

            CachedLists.CustomerList       = Mapper.Map <IEnumerable <CustomerDC>, List <CustomerModel> >(returnObject.CustomerList);
            CachedLists.ControlMeasureList = Mapper.Map <IEnumerable <ControlMeasureDC>, List <ControlMeasureModel> >(returnObject.ControlMeasureList);
            return(CachedLists);
        }