title: Model is null in partial view
body: <p>I'm trying to add a partial view inside a layout page.</p>
  
  <p>Model</p>
  
  <pre><code>public class SummaryPanelModel
      {
          public int TotalDesignDocs { get; set; }
          public int TotalVendorDocs { get; set; }
          public int TotalBusinessDocs { get; set; }
          public int TotalManagementDocs { get; set; }
      }
  </code></pre>
  
  <p>SummaryPanel_Partial Partial View Controller:</p>
  
  <pre><code> public ActionResult SummaryPanel_Partial()
          {
              rep = new SummaryRepository();
              SummaryPanelModel model = new SummaryPanelModel();
              model = rep.ReadsummaryPanel();//read from database
              return View(model);
          }
  </code></pre>
  
  <p>Layout Page</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  @{
      Layout = null;
  }
  
   @Html.Partial("SummaryPanel_Partial")
  </code></pre>
  
  <p>SummaryPanel_Partial Partial View:</p>
  
  <pre><code>@model Doc.Web.Models.SummaryPanel.SummaryPanelModel
  
  &lt;div id="pnlBar"&gt;
      @Html.Label(Model.TotalDesignDocs.ToString())
  &lt;div/&gt;
  </code></pre>
  
  <p>despite the fact that I have passed the model in controller action, the model is always null in the partial view.</p>