示例#1
0
        public async Task <PagedResultDto <TenantDto> > GetListAsync(GetTenantsInput input)
        {
            var count = await _tenantRepository.GetCountAsync();

            var list = await _tenantRepository.GetListAsync(input.Sorting, input.MaxResultCount, input.SkipCount, input.Filter);

            return(new PagedResultDto <TenantDto>(
                       count,
                       ObjectMapper.Map <List <Tenant>, List <TenantDto> >(list)
                       ));
        }
 public Task <PagedResultDto <TenantDto> > GetListAsync(GetTenantsInput input)
 {
     return(_service.GetListAsync(input));
 }