Guest User

Untitled

a guest
Jul 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public class MyCustomBinder : DefaultModelBinder
  2. {
  3. public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
  4. {
  5. // Nothing to see here...
  6. }
  7. }
  8.  
  9. ModelBinders.Binders.Add(typeof(MyObject), new MyCustomBinder ());
Add Comment
Please, Sign In to add comment