I run into a common problem, and I'd like to know a better way to go about it.

Say I have a list or array of ints:

```
var ids = new List<int>();
// pretend I populate 5 or 6 integers

```

And I have a class of cars I pull from the database like this:

```
var cars = carRepo.GetAll();

```

And of course, let's say the Car class has an Id property. It *feels* as if I should be able to do something better than just looping through cars and checking it against the ids. Like there's some sort of fancy Aggregate() or Select() statement that can get what I want. Is there? This is a pretty common thing I run into all the time.