Exemple #1
0
        public async Task <ActionResult <Page <SourceAggregationResponse> > > GetAggregationByTitle([FromQuery] GetSourcesRequest request)
        {
            var sourcesPage = await _sourceManager.GetAggregationByTitleAsync(request.ToDomain(), Cancel);

            SetTotalCountHeader(sourcesPage.TotalCount);
            return(Ok(sourcesPage.Items.Select(x => new SourceAggregationResponse(x.Title, x.Sources))));
        }