- Install package Autofac.MVC4
- Install package Autofac.WebApi
- Add a class AutofacBootstrap. Use this class to configure the dependencies within your project.
- Open Global.asax file and add a method like
- Call the method from Application_Start
- And you are done !!