Ejemplo n.º 1
0
        private ApplicationOrganisationTypeGroupLookupListsCacheObject GetApplicationOrganisationTypeGroupAndLookups()
        {
            UcbServiceClient sc = new UcbServiceClient();
            ApplicationOrganisationTypeGroupVMDC returnObject = sc.GetApplicationOrganisationTypeGroup(HttpContext.Current.User.Identity.Name, HttpContext.Current.User.Identity.Name, "FrameworkAdmin", "", null);

            ApplicationOrganisationTypeGroupLookupListsCacheObject CachedLists = new ApplicationOrganisationTypeGroupLookupListsCacheObject();

            CachedLists.ApplicationList                    = Mapper.Map <IEnumerable <ApplicationDC>, List <ApplicationModel> >(returnObject.ApplicationList);
            CachedLists.OrganisationTypeGroupList          = Mapper.Map <IEnumerable <OrganisationTypeGroupDC>, List <OrganisationTypeGroupModel> >(returnObject.OrganisationTypeGroupList);
            CachedLists.RootOrganisationForApplicationList = Mapper.Map <IEnumerable <OrganisationDC>, List <OrganisationModel> >(returnObject.RootOrganisationForApplicationList);
            return(CachedLists);
        }