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)); }
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); }