since my app has a sidebar menu that gets built dynamically through an xml everytime I want to load a view I need to pass all of this parameters.
ViewData["mainItems"] = navigation.getItems();
ViewData["controller"] = controller;//this is just a string with the name of my controller
how can I avoid doing this everytime but that the parameters keep getting being retrieved and passed?