I have a list of classrooms, each classroom has a list of students. How can I get a list of all the classrooms that have a student named Bob?
I tried:
var bobClassrooms = allClassrooms.SelectMany(x => x.Students)
                                 .Where(y => y.FirstName == "Bob");
But this returns me a list of students whose first name is Bob. How can I get this to be the list of classrooms?
