示例#1
0
        public async Task <ListResultDto <ReRouteDto> > GetListByAppIdAsync(ReRouteGetByAppIdInputDto input)
        {
            await _routeGroupChecker.CheckActiveAsync(input.AppId);

            var routes = await _reRouteRepository.GetByAppIdAsync(input.AppId);

            return(new ListResultDto <ReRouteDto>(ObjectMapper.Map <List <ReRoute>, List <ReRouteDto> >(routes)));
        }
示例#2
0
        public virtual async Task <GlobalConfigurationDto> GetAsync(GlobalGetByAppIdInputDto input)
        {
            await _routeGroupChecker.CheckActiveAsync(input.AppId);

            var globalConfig = await _globalConfigRepository.GetByAppIdAsync(input.AppId);

            var globalConfigDto = ObjectMapper.Map <GlobalConfiguration, GlobalConfigurationDto>(globalConfig);

            return(globalConfigDto);
        }