Beispiel #1
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Event = EventDto.FromEvent(_repository.Query <Event>().Single(x => x.EventId == request.EventId))
 });
Beispiel #2
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Events = _repository.Query <Event>().Select(x => EventDto.FromEvent(x)).ToList()
 });