コード例 #1
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Dashboard = DashboardDto.FromDashboard(await _context.Dashboards
                                            .Include(x => x.DashboardCards)
                                            .SingleOrDefaultAsync(x => x.ProfileId == request.ProfileId))
 };
コード例 #2
0
 public async Task <Response> Handle(Request request, CancellationToken cancellationToken)
 => new Response()
 {
     Dashboard = DashboardDto.FromDashboard(await _context.Dashboards.FindAsync(request.DashboardId))
 };