Example #1
0
 public override ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
 {
     if (string.IsNullOrEmpty(viewName) == false &&
         viewName.StartsWith("~/"))
     {
         string viewPath = SiteUI.GetViewPath(viewName);
         return(base.FindView(controllerContext, viewPath, masterName, useCache));
     }
     else
     {
         return(base.FindView(controllerContext, viewName, masterName, useCache));
     }
 }
Example #2
0
 protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath)
 {
     return(base.CreatePartialView(controllerContext, SiteUI.GetViewPath(partialPath)));
 }
Example #3
0
 protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath)
 {
     return(base.CreateView(controllerContext, SiteUI.GetViewPath(viewPath), masterPath));
 }