Class HtmlRendererResult<TModel>
An ActionResult which renders an IHtmlRenderer<TModel> using a TModel
Inherited Members
Namespace: Eighty.AspNet.Mvc.ActionResults
Assembly: Eighty.AspNet.Mvc.dll
Syntax
public class HtmlRendererResult<TModel> : ActionResult
Type Parameters
Name | Description |
---|---|
TModel | The model type |
Constructors
| Improve this Doc View SourceHtmlRendererResult(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>)
Creates an HtmlRendererResult<TModel>
Declaration
public HtmlRendererResult(IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default(HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
IHtmlRenderer<TModel> | view | The view |
TModel | model | The model |
Nullable<HttpStatusCode> | statusCode | A custom status code |
Properties
| Improve this Doc View SourceModel
The mode
Declaration
public TModel Model { get; }
Property Value
Type | Description |
---|---|
TModel | The mode |
StatusCode
A custom status code
Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
Type | Description |
---|---|
Nullable<HttpStatusCode> | A custom status code |
View
The view
Declaration
public IHtmlRenderer<TModel> View { get; }
Property Value
Type | Description |
---|---|
IHtmlRenderer<TModel> | The view |
Methods
| Improve this Doc View SourceExecuteResult(ControllerContext)
Declaration
public override void ExecuteResult(ControllerContext context)
Parameters
Type | Name | Description |
---|---|---|
ControllerContext | context |