public virtual async Task <PagedResultDto <ClientDto> > GetAsync(ClientGetByPagedInputDto clientGetByPaged)
        {
            // Abp官方IdentityServer项目不支持Filter过滤...
            var clients = await ClientRepository.GetListAsync(clientGetByPaged.Sorting,
                                                              clientGetByPaged.SkipCount, clientGetByPaged.MaxResultCount, true);

            var clientCount = await ClientRepository.GetCountAsync();

            return(new PagedResultDto <ClientDto>(clientCount,
                                                  ObjectMapper.Map <List <Client>, List <ClientDto> >(clients)));
        }
Example #2
0
 public virtual async Task <PagedResultDto <ClientDto> > GetAsync(ClientGetByPagedInputDto clientGetByPaged)
 {
     return(await ClientAppService.GetAsync(clientGetByPaged));
 }