In this example it is demonstrated how to show a custom View against a role of the currently logged user. The custom views were created and customized in the application model for each role separately. For more convenience, the custom views have the name of the role in the Id attribute. There is also a controller that tracks showing views in the application and replaces the default view model with a custom view model found in the application model by the role name.
↧