title: How can I convert this linq to bool
body: <p>How to convert a query to bool?
  I used the "ALL (x => x)" but did not give the answer I needed.</p>
  
  <p>Code Line</p>
  
  <pre><code>checkItemInventory.Where(x =&gt; listCost.Contains(x.Id));
  </code></pre>
  
  <p>In this case, the <code>listcost</code> would have <code>2</code> items, I needed to check if the <code>checkItemInventory</code> has these <code>2</code> items.</p>