Пример #1
0
        public async Task DeleteAsync(ReRouteGetByIdInputDto input)
        {
            var reRoute = await _reRouteRepository.GetByReRouteIdAsync(input.RouteId);

            await _reRouteRepository.DeleteAsync(reRoute);

            await DistributedEventBus.PublishAsync(new ApigatewayConfigChangeEventData(reRoute.AppId, "ReRoute", "Delete"));
        }
 public async Task DeleteAsync(ReRouteGetByIdInputDto input)
 {
     await ReRouteAppService.DeleteAsync(input);
 }
 public async Task <ReRouteDto> GetAsync(ReRouteGetByIdInputDto input)
 {
     return(await ReRouteAppService.GetAsync(input));
 }
Пример #4
0
        public async Task <ReRouteDto> GetAsync(ReRouteGetByIdInputDto input)
        {
            var reRoute = await _reRouteRepository.GetByReRouteIdAsync(input.RouteId);

            return(ObjectMapper.Map <ReRoute, ReRouteDto>(reRoute));
        }
Пример #5
0
        public async Task DeleteAsync(ReRouteGetByIdInputDto routeGetById)
        {
            await _reRouteRepository.DeleteAsync(x => x.ReRouteId.Equals(routeGetById.RouteId));

            await _eventPublisher.PublishAsync(ApigatewayConfigChangeCommand.EventName, new ApigatewayConfigChangeCommand("ReRoute", "Delete"));
        }