public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Conversation = ConversationDto.FromConversation(await _context.Conversations.FindAsync(request.ConversationId))
 };
Ejemplo n.º 2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Conversations = await _context.Conversations.Select(x => ConversationDto.FromConversation(x)).ToListAsync()
 };