コード例 #1
0
        public virtual async Task <PagedResultDto <VersionDto> > GetAsync(VersionGetByPagedDto versionGetByPaged)
        {
            var versionCount = await _versionManager.GetCountAsync(versionGetByPaged.PlatformType, versionGetByPaged.Filter);

            var versions = await _versionManager.GetPagedListAsync(versionGetByPaged.PlatformType, versionGetByPaged.Filter,
                                                                   versionGetByPaged.Sorting, true,
                                                                   versionGetByPaged.SkipCount, versionGetByPaged.MaxResultCount);

            return(new PagedResultDto <VersionDto>(versionCount,
                                                   ObjectMapper.Map <List <AppVersion>, List <VersionDto> >(versions)));
        }
コード例 #2
0
 public virtual async Task <PagedResultDto <VersionDto> > GetAsync(VersionGetByPagedDto versionGetByPaged)
 {
     return(await _versionAppService.GetAsync(versionGetByPaged));
 }