c# linq get list of objects based on another list code example
Example: c# linq get list of objects based on another list
var filtered = listOfAllVenuses
.Where(x=>!listOfBlockedVenues.Any(y=>y.VenueId == x.Id));
var filtered = listOfAllVenuses
.Where(x=>!listOfBlockedVenues.Any(y=>y.VenueId == x.Id));