LINQ Nested Where
- by griegs
If I have the following model;
public List<RecommendedProduct> recommendations
Then
public class RecommendedProduct
public List<Product> Products
Then the Product;
public class Product
public string Code
The recommendations list has, as an example, 10 items in it.
Each recommendations item has two Products in it.
How, with LINQ, can I find the recommendations object that has products with both "A" and "B" product codes?