does anybody know how I can chain my where clauses?
I would like to filter the items in my main list by the items found in the second result.
I have the following example code
@foreach (var artikel in Controller.Artikel
.Where(x => x.LieferantenArtikel
.Where(y => y.Lieferant.LieferantId == bestellung.LieferantId)
)
{
<option value="@artikel.Artikelnummer">@artikel.Artikelnummer</option>
}
The first .Where is just to access the list of my object, which has the real check I need.