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))); }
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); }