Esempio n. 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)
                       ));
        }
 public virtual Task <PagedResultDto <TenantDto> > GetListAsync(TenantGetByPagedInputDto input)
 {
     return(TenantAppService.GetListAsync(input));
 }