Пример #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     DependencyResolver.SetResolver(new AutofacDependencyResolver(AutofacBootstrapper.Configure().Build()));
 }
Пример #2
0
 public static void Start()
 {
     AutofacBootstrapper.Configure();
     MvcBootstrapper.Configure();
     AutoMapperBootstrapper.Configure();
 }