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