Beispiel #1
0
        /// <summary>
        /// Occurs when application starts.
        /// </summary>
        protected void Application_Start()
        {
            // Enable and configure selected Kentico ASP.NET MVC integration features
            ApplicationConfig.RegisterFeatures(ApplicationBuilder.Current);

            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // Register routes including system routes for enabled features
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            // Registers implementation to the dependency resolver
            DependencyResolverConfig.Register();
        }
Beispiel #2
0
        /// <summary>
        /// Occurs when application starts.
        /// </summary>
        protected void Application_Start()
        {
            // Enable and configure selected Kentico ASP.NET MVC integration features
            ApplicationConfig.RegisterFeatures(ApplicationBuilder.Current);

            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // Register Areas before registering other routes
            System.Web.Mvc.AreaRegistration.RegisterAllAreas();

            // Register routes including system routes for enabled features
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            // Registers implementation to the dependency resolver
            DependencyResolverConfig.Register();

            //Api response in json format
            ReturnJsonResponseForWebApi();
        }