예제 #1
0
        public async Task <ICollection <PageVersionSummary> > ExecuteAsync(GetPageVersionSummariesByPageIdQuery query, IExecutionContext executionContext)
        {
            var dbVersions = await Query(query.PageId).ToListAsync();

            var versions = _pageVersionSummaryMapper.MapVersions(query.PageId, dbVersions);

            return(versions);
        }
        public async Task <PagedQueryResult <PageVersionSummary> > ExecuteAsync(GetPageVersionSummariesByPageIdQuery query, IExecutionContext executionContext)
        {
            var dbVersions = await Query(query.PageId).ToPagedResultAsync(query);

            var versions = _pageVersionSummaryMapper.MapVersions(query.PageId, dbVersions);

            return(versions);
        }