mirror of
https://github.com/rudollee/LearningMVC.git
synced 2026-08-11 16:32:55 +00:00
Ch. 20 View - WorkingWithRazor
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
namespace WorkingWithRazor.Infrastructure
|
||||
{
|
||||
public class CustomLocationViewEngine : RazorViewEngine
|
||||
{
|
||||
public CustomLocationViewEngine()
|
||||
{
|
||||
ViewLocationFormats = new string[] { "~/Views/{1}/{0}.cshtml", "~/Views/Common/{0}.cshtml" };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user