public void RenderView(string viewName, object viewModel) { IView view = ViewFactory.GetView(viewName); if (view == null) { view = ViewFactory.CreateView(viewName); view.ControllerManager = this; view.Model = viewModel; view.ShowView(); } else { view.ActiveView(); } }