Hi all,
I am new to MVC and I have a problems understanding model binding.
I need to edit Header.cshtml to customize my theme. This page makes a call to HeaderLinks and passes a model(?) like this:
@Html.Action("HeaderLinks", "Common");
My Questions:
1- Is that line really passing the "Common" model?
2- If yes, where is Header.cshtml getting that model from in order to pass it?
Also, HeaderLinks.cshtml makes the following call:
@if(Model.IsAuthenticated)
1- How can I make that same call on Header.cshtml?
2- How can I get a hold of the necesary model in order to make that call?
I hope somebody can help me make some sense of all this.
Best regards!