예제 #1
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Card = CardApiModel.FromCard(await _context.Cards.FindAsync(request.CardId))
 };
예제 #2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Cards = await _context.Cards.Select(x => CardApiModel.FromCard(x)).ToListAsync()
 };