Exemplo n.º 1
0
        private IncidentTypeLookupListsCacheObject GetIncidentTypeAndLookups()
        {
            UcbServiceClient sc           = new UcbServiceClient();
            IncidentTypeVMDC returnObject = sc.GetIncidentType(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null);

            IncidentTypeLookupListsCacheObject CachedLists = new IncidentTypeLookupListsCacheObject();

            CachedLists.IncidentCategoryList = Mapper.Map <IEnumerable <IncidentCategoryDC>, List <IncidentCategoryModel> >(returnObject.IncidentCategoryList);
            return(CachedLists);
        }