示例#1
0
        public override IList <SecurityGroupDto> GetAll()
        {
            AppDomainTDataAccess appDomainrep = new AppDomainTDataAccess();
            var result = base.GetAll();

            foreach (var item in result)
            {
                var app = appDomainrep.GetSingle(it => it.ApplicationDomainId == item.AppDomainId);
                if (app != null)
                {
                    item.ApplicationDomainDto = app;
                }
            }
            return(result);
        }
示例#2
0
        public ApplicationDomainDtoContainer GetAppDomainList()
        {
            ApplicationDomainDtoContainer container   = new ApplicationDomainDtoContainer();
            AppDomainTDataAccess          appDomainDa = new AppDomainTDataAccess();
            LoginTypeTDataAccess          loginTypeDa = new LoginTypeTDataAccess();
            var appDomainList = appDomainDa.GetAll();
            var loginTypeList = loginTypeDa.GetAll();

            if (appDomainList != null && appDomainList.Count > 0)
            {
                container.ApplicationDomainDtoList.AddRange(appDomainList);
            }
            if (loginTypeList != null && loginTypeList.Count > 0)
            {
                container.LoginTypeDtoList.AddRange(loginTypeList);
            }
            return(container);
        }