public async Task <IActionResult> GetBacklinks([FromQuery] GetBacklinksQuery query) { return(Ok(await Mediator.Send(query))); }
public Task <List <BackLinksPreviewDto> > Handle(GetBacklinksQuery request, CancellationToken cancellationToken) { return(_context.BackLinks .Select(BackLinksPreviewDto.Projection) .ToListAsync(cancellationToken)); }