public async Task <IActionResult> GetBirthCeremonyDays([FromQuery] GetBirthCeremonyDaysQuery query) { return(Ok(await Mediator.Send(query))); }
public Task <List <BirthCeremonyDaysPreviewDto> > Handle(GetBirthCeremonyDaysQuery request, CancellationToken cancellationToken) { return(_context.BirthCeremonyDays .Select(BirthCeremonyDaysPreviewDto.Projection) .ToListAsync(cancellationToken)); }