public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Card = CardDto.FromCard(_eventStore.Query <Card>(request.CardId))
 });
Exemple #2
0
 public Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => Task.FromResult(new Response()
 {
     Cards = _eventStore.Query <Card>().Select(x => CardDto.FromCard(x)).ToList()
 });