Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyCustomBinder : DefaultModelBinder
- {
- public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
- {
- // Nothing to see here...
- }
- }
- ModelBinders.Binders.Add(typeof(MyObject), new MyCustomBinder ());
Add Comment
Please, Sign In to add comment