title: The model item passed into the dictionary is of type 'System.Data.Entity.Infrastructure.DbQuery
body: <p>I want to get record from my db where hidden=false and id is got in browser. Please see my code and fix for me, thanks so much (I searched but can not fix my error). 
  My action:</p>
  
  <pre><code>public ActionResult Detail(int id = 0)
      {
          var item = db.Destinations.Where(i=&gt;i.Hidden==false &amp;&amp; i.Id==id);
  
          if (item==null)
          {
              return HttpNotFound();
          }
          return View(item);
      }
  </code></pre>
  
  <p>My View:</p>
  
  <pre><code>@model vtt.Models.Destination
      @{
      ViewBag.Title = "Detail";
      }
      &lt;div class="white"&gt;
       &lt;h1&gt;@Model.Name&lt;/h1&gt;
       @Html.Raw(Model.Description)
      &lt;/div&gt;
  </code></pre>
  
  <p>And Error: </p>
  
  <pre><code> The model item passed into the dictionary is of type
          'System.Data.Entity.Infrastructure.DbQuery`1[vtt.Models.Destination]', but this dictionary
          requires a model item of type 'vtt.Models.Destination'.
  </code></pre>