EDIT:
, , - . , equals, , .Net , . , . , ID .
2:
Intersect Any - ,
public List<User> GetUsers(User admin)
{
var adminCompanyIDs = admin.Companys.Select(c => c.ID);
return Users.Where(user=>user.Companys.Select(c => c.ID).Intersect(adminCompanyIDs).Any()).ToList();
}
, , - . , .
. , [1,2,3] [2,3,4] [2,3].
. , true. , [2,3], . , . [2,3].Any() true, Where.
, True of False,
, .