Example #1
0
        public virtual async Task <PagedResultDto <MapTenantDto> > GetPagedListAsync(MapTenantPagedRequestDto input)
        {
            var count = await MapTenantRepository.GetCountAsync(input.Code, input.TenantId, input.MapCode);

            var mapTenants = await MapTenantRepository.GetListAsync(
                input.SkipCount,
                input.MaxResultCount,
                input.Sorting,
                input.Code,
                input.TenantId,
                input.MapCode);

            return(new PagedResultDto <MapTenantDto>(
                       count,
                       ObjectMapper.Map <List <MapTenant>, List <MapTenantDto> >(mapTenants)
                       ));
        }
Example #2
0
 public async Task <PagedResultDto <MapTenantDto> > GetPagedListAsync(MapTenantPagedRequestDto input)
 {
     return(await _mapTenantAppService.GetPagedListAsync(input));
 }