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