コード例 #1
0
 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()
 };
コード例 #2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     DashboardCard = DashboardCardApiModel.FromDashboardCard(await _context.DashboardCards.FindAsync(request.DashboardCardId))
 };