title: When i click on tab i lose data and code not looping throw Model again?
body: <p><strong>Hi
  i have try to loop throw data in "Categories" Table and it works - i got data when i open View in first time but if i click on a tab to see its content i got only first record ?
  i don't know why i lose all data i got in first time ?
  Razor Code:</strong></p>
  
  <pre><code>@section personAds{
  &lt;h2 class="title text-center"&gt;Person Ads&lt;/h2&gt;
  &lt;div class="col-sm-12"&gt;
      &lt;ul class="nav nav-tabs"&gt;
          &lt;li class="active"&gt;&lt;a href="#propertytab" data-toggle="tab"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#carstab" data-toggle="tab"&gt;Cars&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  &lt;div class="tab-content"&gt;
  
      @foreach (var personItems in Model.Where(isCompany =&gt; isCompany.isCompany == false))
      {
          &lt;div class="tab-pane fade active in" id="propertytab"&gt;
              &lt;div class="col-sm-3"&gt;
                  &lt;div class="product-image-wrapper"&gt;
                      &lt;div class="single-products"&gt;
                          &lt;div class="productinfoslide text-center"&gt;
                              &lt;img src="@Url.Content(personItems.catImage)" alt="" /&gt;
                              &lt;h4&gt;@personItems.catName&lt;/h4&gt;
                              &lt;a href="#" class="btn btn-default plus-info"&gt;&lt;i class="@personItems.classIcon"&gt;&lt;/i&gt;More&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="tab-pane fade" id="carstab"&gt;
              &lt;div class="col-sm-3"&gt;
                  &lt;div class="product-image-wrapper"&gt;
                      &lt;div class="single-products"&gt;
                          &lt;div class="productinfoslide text-center"&gt;
                              &lt;img src="@Url.Content(personItems.catImage)" alt="" /&gt;
                              &lt;h4&gt;@personItems.catName&lt;/h4&gt;
                              &lt;a href="#" class="btn btn-default plus-info"&gt;&lt;i class="@personItems.classIcon"&gt;&lt;/i&gt;More&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      }
  &lt;/div&gt;
  </code></pre>
  
  <p>}</p>
  
  <p><strong>Controller Code:</strong></p>
  
  <pre><code>public ActionResult Contact()
  {
      var model = _db.Categories.ToList();
      return View(model);
  }
  </code></pre>
  
  <p><strong>and i try to remove where condition and i got same result - when i click on any tab i got only first record ?!</strong></p>
  
  <p><strong>Please see the Video of Problem ... <a href="https://app.box.com/s/zaxdi74rqrj1tbz84a6b" rel="nofollow">Click Here</a></strong></p>