public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { DashboardCards = await _context.DashboardCards .Where(x => request.DashboardCardIds.Contains(x.DashboardCardId)) .Select(x => DashboardCardApiModel.FromDashboardCard(x)).ToListAsync() };
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { DashboardCard = DashboardCardApiModel.FromDashboardCard(await _context.DashboardCards.FindAsync(request.DashboardCardId)) };