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)) };
public async Task <Response> Handle(Request request, CancellationToken cancellationToken) => new Response() { Dashboard = DashboardDto.FromDashboard(await _context.Dashboards.FindAsync(request.DashboardId)) };