select from list where not in other list csharp
Code Example - select from list where not in other list csharp
var result = peopleList2.Where(p => peopleList1.All(p2 => p2.ID != p.ID));
var result = peopleList2.Where(p => peopleList1.All(p2 => p2.ID != p.ID));