BACKGROUND
I am trying to make use of Dashboard template on an MVC application I'm working on.
I am not sure how I can pass a ViewModel to the top bar I've called Header.
CODE
In my _Layout.cshtml
, I have split the HTML like so:
<body class="">
@Html.Partial("_Header")
<div class="page-container row-fluid">
@Html.Partial("_Sidebar")
<div class="page-content">
<div class="content">
@RenderBody()
</div>
</div>
</div>
</body>
I am guessing this is wrong because now I cannot pass a ViewModel to the header section, or if I can, we're not supposed to?
What is the right way of splitting this?