예제 #1
0
        public virtual async Task <PagedResultDto <TenantDto> > GetListAsync(TenantGetByPagedInputDto input)
        {
            var count = await TenantRepository.GetCountAsync(input.Filter);

            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)
                       ));
        }
예제 #2
0
 public virtual Task <PagedResultDto <TenantDto> > GetListAsync(TenantGetByPagedInputDto input)
 {
     return(TenantAppService.GetListAsync(input));
 }