I have a list of people that are related to a committee table and another table types person, I need to return the list of people of a committee and also return the list of people of a type note: return the people that I return from the relationship with the committee do not have to be filtered by type, just return the list without filter
I have something like this:
var lp = bd.Instituciones
.Where(x => x.IdInstitucion == idInstitucion)
.Select(x => x.Comites.Select(c => c.ComitesPersonas.Select(p => p.Persona)).ToList() && x.Personas.ToList());