Ejemplo n.º 1
0
        public static void AdjustViewEngines(ViewEngineCollection viewEngines)
        {
            // Turn off WebFormViewEngine. Use Razor only.
            var webformViewEngine = viewEngines.OfType <WebFormViewEngine>().FirstOrDefault();

            if (webformViewEngine != null)
            {
                viewEngines.Remove(webformViewEngine);
            }

            // Activate MvcCodeRouting view wrapper
            viewEngines.EnableCodeRouting();
        }
 public static void RegisterViewEngines(ViewEngineCollection viewEngines) {
    viewEngines.EnableCodeRouting();
 }
Ejemplo n.º 3
0
 public static void RegisterViewEngines(ViewEngineCollection viewEngines)
 {
     viewEngines.EnableCodeRouting();
 }