mirror of
https://github.com/rudollee/LearningMVC.git
synced 2025-06-07 16:06:21 +00:00
16 lines
360 B
C#
16 lines
360 B
C#
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" };
|
|
}
|
|
}
|
|
} |