I want to set ModelBinders.Binders.DefaultBinder=new SmartBinder() in asp.net mvc 4 using autofac, what is the right way to do that?
Asked
Active
Viewed 1,216 times
1
-
1It appears what you have there will work as-is. Why does Autofac need to be involved? – Travis Illig Aug 17 '13 at 19:09
1 Answers
1
In your Global.asax.cs;
protected void Application_Start()
{
System.Web.Mvc.ModelBinders.Binders.DefaultBinder = new SmartBinder();
}
Autofac is not needed to do that.

leondepdelaw
- 51
- 2
- 6