Exemplo n.º 1
0
        public async Task <ReRouteDto> GetByRouteNameAsync(string routeName)
        {
            var reRoute = await _reRouteRepository.GetByNameAsync(routeName);

            return(ObjectMapper.Map <ReRoute, ReRouteDto>(reRoute));
        }
Exemplo n.º 2
0
        public async Task <ReRouteDto> GetByRouteNameAsync(ReRouteGetByNameInputDto input)
        {
            var reRoute = await _reRouteRepository.GetByNameAsync(input.RouteName);

            return(ObjectMapper.Map <ReRoute, ReRouteDto>(reRoute));
        }