Ejemplo n.º 1
0
        public async Task <PagedResultDto <AggregateReRouteDto> > GetPagedListAsync(AggregateRouteGetByPagedInputDto aggregateRouteGetByPaged)
        {
            var reroutesTuple = await _aggregateReRouteRepository
                                .GetPagedListAsync(aggregateRouteGetByPaged.AppId, aggregateRouteGetByPaged.Filter,
                                                   aggregateRouteGetByPaged.Sorting, aggregateRouteGetByPaged.SkipCount,
                                                   aggregateRouteGetByPaged.MaxResultCount);

            return(new PagedResultDto <AggregateReRouteDto>(reroutesTuple.total,
                                                            ObjectMapper.Map <List <AggregateReRoute>, List <AggregateReRouteDto> >(reroutesTuple.routes)));
        }
 public async Task <PagedResultDto <AggregateReRouteDto> > GetPagedListAsync(AggregateRouteGetByPagedInputDto aggregateRouteGetByPaged)
 {
     return(await AggregateReRouteAppService.GetPagedListAsync(aggregateRouteGetByPaged));
 }