Ancestry.Daisy.Documentation.MVC.CompiledRazorView.ExecuteResult C# (CSharp) Method

ExecuteResult() public method

Enables processing of the result of an action method by a custom type that inherits from the T:System.Web.Mvc.ActionResult class.
public ExecuteResult ( System.Web.Mvc.ControllerContext context ) : void
context System.Web.Mvc.ControllerContext The context in which the result is executed. The context information includes the controller, HTTP content, request context, and route data.
return void
        public override void ExecuteResult(ControllerContext context)
        {
            var rendered = RazorEngine.Razor.Run(viewName, model);
            context.HttpContext.Response.Write(rendered);
        }