protected void Application_Start() { AreaRegistration.RegisterAllAreas(); var bootstrapper = new SamuraiBootstrapper(); var container = bootstrapper.CreateContainer(); DependencyResolver.SetResolver(new AutofacDependencyResolver(container)); SamuraiBootstrapper.DoMigrations(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); }