123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Web.Mvc;
-
- namespace Teknik
- {
- public class CustomRazorViewEngine : RazorViewEngine
- {
- public CustomRazorViewEngine()
- {
- base.AreaViewLocationFormats = new string[]
- {
- "~/Areas/{2}/Views/{1}/{0}.cshtml",
- "~/Areas/{2}/Views/Shared/{0}.cshtml"
- };
-
- base.AreaMasterLocationFormats = new string[]
- {
- "~/Areas/{2}/Views/{1}/{0}.cshtml",
- "~/Areas/{2}/Views/Shared/{0}.cshtml"
- };
-
- base.AreaPartialViewLocationFormats = new string[]
- {
- "~/Areas/{2}/Views/{1}/{0}.cshtml",
- "~/Areas/{2}/Views/Shared/{0}.cshtml"
- };
-
- base.ViewLocationFormats = new string[]
- {
- "~/Views/{1}/{0}.cshtml",
- "~/Views/Shared/{0}.cshtml"
- };
-
- base.PartialViewLocationFormats = new string[]
- {
- "~/Views/{1}/{0}.cshtml",
- "~/Views/Shared/{0}.cshtml"
- };
-
- base.MasterLocationFormats = new string[]
- {
- "~/Views/{1}/{0}.cshtml",
- "~/Views/Shared/{0}.cshtml"
- };
- }
- }
- }
|