Ejemplo n.º 1
0
        private ViewEngineResult CreateViewEngineResult(RazorPageResult result,
                                                        IRazorViewFactory razorViewFactory,
                                                        bool isPartial)
        {
            if (result.SearchedLocations != null)
            {
                return(ViewEngineResult.NotFound(result.Name, result.SearchedLocations));
            }

            var view = razorViewFactory.GetView(this, result.Page, isPartial);

            return(ViewEngineResult.Found(result.Name, view));
        }
Ejemplo n.º 2
0
        private ViewEngineResult CreateViewEngineResult(RazorPageResult result,
                                                        IRazorViewFactory razorViewFactory,
                                                        bool isPartial)
        {
            if (result.SearchedLocations != null)
            {
                return ViewEngineResult.NotFound(result.Name, result.SearchedLocations);
            }

            var view = razorViewFactory.GetView(this, result.Page, isPartial);
            return ViewEngineResult.Found(result.Name, view);
        }