I have the following on an ASP.NET MVC 5.0 master view:
@Html.Partial(MVC.Shared.Views._Base, new { MasterViewName = "core" });
Then on the master view I tried to get the value:
@model dynamic
@Model.MasterViewName;
But I get the error:
'object' does not contain a definition for 'MasterViewName'
What am I missing?
Thank you, Miguel