title: Does not contain definition for 'Contains'
body: <p>It is showing the error like "doesn't contain definition for ID" for the code</p>
  
  <pre><code>[HttpPost]
  public ActionResult show(List&lt;int&gt; ids)
      {
          if (ids != null)
          {
              int[] brands = ids.ToArray();
              var brandId = _db.Brands.Where(p =&gt; brands.Contains(p.ID));
              var srtItems = _db.Products.Where(p =&gt; p.CategoryID == brandId.ID);
  
              return PartialView("_pView", srtItems);
          }
      }
  </code></pre>
  
  <p>and for the following code the error is' doesn't contain definition for Contains'</p>
  
  <pre><code>[HttpPost]
          public ActionResult show(List&lt;int&gt; ids)
          {
              if (ids != null)
              {
                  int[] brands = ids.ToArray();
                  var brandId = _db.Brands.Where(p =&gt; brands.Contains(p.ID));
  
                  var sortItemss = _db.Products.Where(p =&gt; brandId.Contains(p.CategoryID));
                  return PartialView("_pView", srtItems);
              }
  </code></pre>
  
  <p>Please guide me</p>