title: Pass data from one view to another view -MVC
body: <p>What would be the best method to transfer data from one view to another view? or is this bad practice?</p>
  
  <p>The reason is that i want to display @model.count() from one view to the homepage, basically a summary of all the views on the homepage. There is tempdata, html.helper etc but id like to know the best and most reliable method. Thus avoiding problems further on down the line</p>
  
  <p>here is the code in question</p>
  
  <p>product.cshtml</p>
  
  <pre><code>&lt;p&gt;Total amount of Products = @Model.Count()&lt;/p&gt;
  </code></pre>
  
  <p>i basically want that same value to display on the homepage</p>