Exemplo n.º 1
0
        public async Task <GlobalConfigurationDto> GetAsync(GlobalGetByAppIdInputDto input)
        {
            ICurrentClient client        = null;
            var            currentClient = LazyGetRequiredService(ref client);

            return(await GlobalConfigurationAppService.GetAsync(input));
        }
Exemplo n.º 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);
        }
 public virtual async Task DeleteAsync(GlobalGetByAppIdInputDto input)
 {
     await GlobalConfigurationAppService.DeleteAsync(input);
 }
 public async Task <GlobalConfigurationDto> GetAsync(GlobalGetByAppIdInputDto input)
 {
     return(await GlobalConfigurationAppService.GetAsync(input));
 }
Exemplo n.º 5
0
        public virtual async Task DeleteAsync(GlobalGetByAppIdInputDto input)
        {
            var globalConfiguration = await _globalConfigRepository.GetByAppIdAsync(input.AppId);

            await _globalConfigRepository.DeleteAsync(globalConfiguration);
        }