title: 'int' does not contain a definition for 'Contains' and the best extension method overload 'Queryable.Contains
body: <p>I want to filter the grid view by Id, but something error in my syntax</p>
  
  <p>This my HomeController:</p>
  
  <pre><code>public ActionResult Index(int searching)
  {
     return View(db.ex_op.Where( x =&gt; x.id_ats.Contains(searching) || searching = null).ToList());
  }
  
  </code></pre>
  
  <p>this my HomeView:</p>
  
  <pre><code>@using (Html.BeginForm("Index", "Home", FormMethod.Get))
  {
      @Html.TextBox("searching")
      &lt;input type="submit" value="Search" /&gt;
  }
  </code></pre>
  
  <p>this my Error:</p>
  
  <blockquote>
    <p>'int' does not contain a definition for 'Contains' and the best extension method overload 'Queryable.Contains(IQueryable,int)' requires a receiver of type 'IQueryable' ```</p>
  </blockquote>
  
  <p>Thank you so much!</p>