title: How to pass model (and anything else) from view to partial view
body: <p>The overload for @Html.Partial takes a model, so in the "primary" view I put in this.model:</p>
  
  <pre><code>@Html.Partial("_GenericIndex", this.Model ) 
  </code></pre>
  
  <p>I tried just putting @Model in the partial view to see if anything showed up, but I got nothing.</p>
  
  <p>So, how do I use that this.Model parameter in the partial view? I have seen some horrible solutions where it was prepared especially for the partial view in viewdata or something. Surely that is not necessary?</p>
  
  <p><strong>I just want to access the Html.Partial argument that I enter into it</strong>.</p>
  
  <p>By the way my controller and action are like this:</p>
  
  <pre><code>public class TestController : Controller
  {
      IRepository&lt;Customer&gt; customerrepo = RepositoryFactory.GetRepository&lt;Customer&gt;();
  
      //
      // GET: /Test/
      public ActionResult Index()
      {
          Customer cust = customerrepo.GetByID("1");
          return View(cust);
      }
  }
  </code></pre>