Example #1
0
        protected ViewResult View(Model model)
        {
            ControllerContext.Application.NotifyBindModel(this, model);

            var viewType = FindView();
            var view = (View)ControllerContext.Application.DependencyResolver.GetService(viewType, 
                new Dictionary<Type, object> { { typeof(Model), model } });
            return new ViewResult(view);
        }
Example #2
0
 public Property(Model model, PropertyInfo propertyInfo)
 {
     this.model = model;
     this.propertyInfo = propertyInfo;
 }
Example #3
0
 protected virtual void OnBindModel(Controller controller, Model model)
 {
 }
Example #4
0
 internal void NotifyBindModel(Controller controller, Model model)
 {
     OnBindModel(controller, model);
 }