Exemple #1
0
 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();
 }
Exemple #2
0
 public void RegisterModelBinders(ModelBinderDictionary modelBinders)
 {
     modelBinders[typeof(PageAddress)]       = new PageAddressModelBinder();
     modelBinders[typeof(PageInput)]         = new PageInputModelBinder();
     modelBinders[typeof(ContentItemsInput)] = new ContentItemsInputModelBinder();
 }