Ejemplo n.º 1
0
        public virtual async Task <PagedResultDto <RouteGroupDto> > GetAsync(RouteGroupGetByPagedInputDto routerGetByPagedInput)
        {
            using (DataFilter.Disable <IActivation>())
            {
                var(Routers, TotalCount) = await RouterRepository.GetPagedListAsync(routerGetByPagedInput.Filter,
                                                                                    routerGetByPagedInput.Sorting, routerGetByPagedInput.SkipCount, routerGetByPagedInput.MaxResultCount);

                var routers = ObjectMapper.Map <List <RouteGroup>, List <RouteGroupDto> >(Routers);

                return(new PagedResultDto <RouteGroupDto>(TotalCount, routers));
            }
        }
Ejemplo n.º 2
0
 public virtual async Task <PagedResultDto <RouteGroupDto> > GetAsync(RouteGroupGetByPagedInputDto input)
 {
     return(await RouterAppService.GetAsync(input));
 }