public async Task <IActionResult> GetCulturalDays([FromQuery] GetCulturalDaysQuery query) { return(Ok(await Mediator.Send(query))); }
public Task <List <CulturalDaysPreviewDto> > Handle(GetCulturalDaysQuery request, CancellationToken cancellationToken) { return(_context.CulturalDays .Select(CulturalDaysPreviewDto.Projection) .ToListAsync(cancellationToken)); }