Can someone help?
I tried to create a Linq but don't find the right syntax:
This is the code I want to update to Linq:
List<Person> list = new List<Person>();
foreach (Person p in persons)
{
   foreach (Course c in p.courses)
   {
      if (c.id == q.id)
      {
         list.Add(p);
      }
   }
}
 
    