protected override bool FileExists(ControllerContext controllerContext, string virtualPath) { if (ViewEngineUtility.IsPemsController(controllerContext)) { return(base.FileExists(controllerContext, ViewEngineUtility.AreaPathFix(controllerContext, virtualPath))); } else { return(base.FileExists(controllerContext, virtualPath)); } }
protected override IView CreatePartialView(ControllerContext controllerContext, string partialPath) { if (ViewEngineUtility.IsPemsController(controllerContext)) { return(base.CreatePartialView(controllerContext, ViewEngineUtility.AreaPathFix(controllerContext, partialPath))); } else { return(base.CreatePartialView(controllerContext, partialPath)); } }
protected override IView CreateView(ControllerContext controllerContext, string viewPath, string masterPath) { if (ViewEngineUtility.IsPemsController(controllerContext)) { return(base.CreateView(controllerContext, ViewEngineUtility.AreaPathFix(controllerContext, viewPath), ViewEngineUtility.AreaPathFix(controllerContext, masterPath))); } else { return(base.CreateView(controllerContext, viewPath, masterPath)); } }