Beispiel #1
0
        protected void Application_Start()
        {
            ViewEngines.Engines.Clear();

            ViewEngines.Engines.Add(new CustomRazorViewEngine());

            UnityConfigPresentation.RegisterComponents(UnityConfig.RegisterComponents());
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }
Beispiel #2
0
        protected void Application_Start()
        {
            ProductMapping.Execute();

            UnityConfigPresentation.RegisterComponents(UnityConfig.RegisterComponents());

            ApplicationSettings.Url = "https://localhost:44376/api/";
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
        }