C# Value from another List linked to value
<p>I am trying to get the productname from the List where it matches the Productid from the List using LINQ but I have no luck.</p>

<p>The ProductID is in both lists and It should be linked somehow.</p>

<p>I tried:</p>

<pre><code>Product product = products.FirstOrDefault(x =&gt; x.ProductName == orderDetail.ProductID);


        List&lt;orderDetail&gt; orderDetails = Database.getOrderDetails();
        List&lt;Product&gt; products = Database.getProducts();

        textBox1.Text = Convert.ToString(orderDetail.OrderID);
        textBox2.Text = Convert.ToString(Productname);
        textBox3.Text = Convert.ToString(orderDetail.UnitPrice);
        textBox4.Text = Convert.ToString(orderDetail.Quantity);
        textBox5.Text = Convert.ToString(orderDetail.Discount);
</code></pre>