title: Why am I geting this error: Operator ‘&&’ cannot be applied to operands of type System.Linq.IQueryable?
body: <p>I’m trying to retrieve data from an entity and populate a viewModel property like this:</p>
  
  <pre><code>viewModel.Enrollments = db.Enrollments.Where(b =&gt; b.classDays == "Monday") &amp;&amp; (db.Enrollments.Where(b =&gt; b.CourseID == courseID);
  </code></pre>
  
  <p>but I get a operator <code>&amp;&amp;</code> cannot be applied to operands of type <code>System.Linq.IQerable&lt;&gt;</code> error.  Can you help with a way to find all Monday class with the same ID?</p>
  
  <p>I tried this:  <code>viewModel.Enrollments = db.Enrollments.Where(b =&gt; b.classDays == "Monday")</code> but I get all Mondays courses but I want to limit them to a specific courseID.</p>
  
  <p>Please help!</p>