コード例 #1
0
 public void RegisterModelBinders(ModelBinderDictionary modelBinders)
 {
     modelBinders[typeof(PluginAddress)]             = new PluginAddressModelBinder();
     modelBinders[typeof(PluginEditInput)]           = new PluginEditInputModelBinder();
     modelBinders[typeof(PluginNotInstalledAddress)] = new PluginNotInstalledAddressModelBinder();
     modelBinders[typeof(PluginInstallInput)]        = new PluginInstallInputModelBinder();
 }
コード例 #2
0
 public void RegisterModelBinders(ModelBinderDictionary modelBinders)
 {
     modelBinders[typeof(Plugin)]                    = container.Resolve <PluginModelBinder>();
     modelBinders[typeof(PluginEditInput)]           = new PluginEditInputModelBinder();
     modelBinders[typeof(PluginNotInstalledAddress)] = new PluginNotInstalledAddressModelBinder();
     modelBinders[typeof(PluginInstallInput)]        = new PluginInstallInputModelBinder();
 }