public void RegisterModelBinders(ModelBinderDictionary modelBinders) { modelBinders[typeof(Page)] = container.Resolve <PageModelBinder>(); modelBinders[typeof(PageInput)] = new PageInputModelBinder(); modelBinders[typeof(ContentItemInput)] = new ContentItemInputModelBinder(); modelBinders[typeof(ContentItemsInput)] = new ContentItemsInputModelBinder(); }
public void RegisterModelBinders(ModelBinderDictionary modelBinders) { modelBinders[typeof(PageAddress)] = new PageAddressModelBinder(); modelBinders[typeof(PageInput)] = new PageInputModelBinder(); modelBinders[typeof(ContentItemsInput)] = new ContentItemsInputModelBinder(); }