public ActionResult MvcView() { var view = new Standard {ViewData = {Model = "red"}}; view.PushContext(new WebPageContext(), new StringWriter()); view.Execute(); var result = view.Output.ToString(); view.PopContext(); return Content(result); }
public ActionResult MvcView() { var view = new Standard {ViewData = {Model = "red"}}; view.PushContext(new WebPageContext(), new StringWriter()); view.Execute(); var result = view.Output.ToString(); view.PopContext(); return Content(result); }