How to create a strongly typed master page using a base controller in ASP.NET MVC
Following the NerdDinners example, I am interested in creating a strongly typed Master Page. In order to achieve this, I use a base controller which retrieves the data for the master page. All other controllers inherit this class. Similarly, I have ViewModels for the master page and any other views. The view ViewModel classes inherit from the master page's ViewModel . Question How should a child controller ensure that the master page's data is passed to the View without setting the properties of its ViewModel that pertain to the master page itself? My the master page will display a number of