Im learning LINQ and I want to find the cheapest product from the following list:
List products = new List { n
You need to order by the price first and then select the first.
if(products.Any()){ var productWithCheapestPrice = products.OrderBy(p => p.Price).First(); }