title: How to find minimum value in a collection using linq?
body: <p>I have a collection where i need to find an item with lowest price if more than 1 found the by default any should be selected and it's isPriceSelected property need to set false.</p>
  
  <p>I am trying something like this.</p>
  
  <pre><code>lstBtn.Where(p =&gt; p.CategoryID == btnObj.CategoryID &amp;&amp; 
                    p.IsSelected == true &amp;&amp; p.IsPriceApplied == true)
        .ToList()
        .Min(m=&gt;m.Price)
  </code></pre>