title: What's the standard way to sent the data model to partial view?
body: <p>I have a partial view named '_MenuPartial' which has dynamic data from the database.Now I render this view in the '_Layout.cshtml' as below  </p>
  
  <h2>_Layout.cshtml:</h2>
  
  <pre><code>@Html.Partial("_MenuPartial");
  </code></pre>
  
  <p>in my controller, I will send the menu data model to the 'index.view' which is based on the '_Layout.cshtml'.</p>
  
  <p>But My question is that when I want to set the Layout for other views, I need send the menu data model in other views' controller which I think is redundant. So What's the standard way to sent the data model to partial view in the Layout page? How to response a view which has the layout but don't give the data model layout page need?</p>
  
  <p>Hope your answer. thanks a lot!</p>