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(); }
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(); }