Exemple #1
0
        public ViewEngineResult FindPartialView(ControllerContext controllerContext, string partialViewName, bool useCache)
        {
            partialViewName = RazorCompressHelper.GetCompressedViewName(controllerContext, partialViewName);

            var result = _razorViewEngine.FindPartialView(controllerContext, partialViewName, useCache);

            return(result);
        }
Exemple #2
0
        public ViewEngineResult FindView(ControllerContext controllerContext, string viewName, string masterName, bool useCache)
        {
            if (masterName != null)
            {
                masterName = masterName == string.Empty ? "_Layout" : masterName;
            }
            masterName = RazorCompressHelper.GetCompressedViewName(controllerContext, masterName);
            viewName   = RazorCompressHelper.GetCompressedViewName(controllerContext, viewName);

            var result = _razorViewEngine.FindView(controllerContext, viewName, masterName, useCache);

            return(result);
        }