Пример #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     AutomapperWebProfile.Run();
     UnityConfig.RegisterComponents();
 }
Пример #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     AutomapperWebProfile.Run();
 }
Пример #3
0
        protected void Application_Start()
        {
            GlobalFilters.Filters.Add(new AuthorizeAttribute());
            RegisterAutofac();
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            AutomapperWebProfile.Run();
        }
Пример #4
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            UnityConfig.RegisterComponents();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AutomapperWebProfile.Run();

            System.Web.Optimization.BundleTable.EnableOptimizations = true;
        }
Пример #5
0
 protected void Application_Start()
 {
     Database.SetInitializer(new MigrateDatabaseToLatestVersion <Models.DataContextLocal, Migrations.Configuration>());
     CheckRolesAndSuperUser();
     CheckEstadoCivil();
     CheckHorarioRubro();
     CheckEstadoMarca();
     AutomapperWebProfile.Run();
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
 }
 protected void Application_Start()
 {
     GlobalConfiguration.Configure(WebApiConfig.Register);
     AutomapperWebProfile.Run();
 }
Пример #7
0
 public static void Main(string[] args)
 {
     AutomapperWebProfile.Run();
     BuildWebHost(args).Run();
 }