Class EightyActionResultFactory
Methods for creating System.Web.Mvc.ActionResults
Inherited Members
Namespace: Eighty.AspNet.Mvc.ActionResults
Assembly: Eighty.AspNet.Mvc.dll
Syntax
public static class EightyActionResultFactory
Methods
| Improve this Doc View SourceCreate(Html, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from some Html
Declaration
public static HtmlResult Create(Html html, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
Html | html | The HTML |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlResult | An System.Web.Mvc.ActionResult |
Create(HtmlBuilder, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from an HtmlBuilder
Declaration
public static HtmlBuilderResult Create(HtmlBuilder htmlBuilder, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
HtmlBuilder | htmlBuilder | The HTML builder |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlBuilderResult | An System.Web.Mvc.ActionResult |
Create<TModel>(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from an IHtmlRenderer<TModel> and a TModel
Declaration
public static HtmlRendererResult<TModel> Create<TModel>(IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
IHtmlRenderer<TModel> | view | The view |
TModel | model | The model |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlRendererResult<TModel> | An System.Web.Mvc.ActionResult |
Type Parameters
Name | Description |
---|---|
TModel | The model type |
Create<TModel>(IHtmlBuilderRenderer<TModel>, TModel, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from an IHtmlBuilderRenderer<TModel> and a TModel
Declaration
public static HtmlBuilderRendererResult<TModel> Create<TModel>(IHtmlBuilderRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
IHtmlBuilderRenderer<TModel> | view | The view |
TModel | model | The model |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlBuilderRendererResult<TModel> | An System.Web.Mvc.ActionResult |
Type Parameters
Name | Description |
---|---|
TModel | The model type |
ToActionResult(Html, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from some Html
Declaration
public static HtmlResult ToActionResult(this Html html, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
Html | html | The HTML |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlResult | An System.Web.Mvc.ActionResult |
ToActionResult(HtmlBuilder, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from an HtmlBuilder
Declaration
public static HtmlBuilderResult ToActionResult(this HtmlBuilder htmlBuilder, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
HtmlBuilder | htmlBuilder | The HTML builder |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlBuilderResult | An System.Web.Mvc.ActionResult |
ToActionResult<TModel>(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from an IHtmlRenderer<TModel> and a TModel
Declaration
public static HtmlRendererResult<TModel> ToActionResult<TModel>(this IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
IHtmlRenderer<TModel> | view | The view |
TModel | model | The model |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlRendererResult<TModel> | An System.Web.Mvc.ActionResult |
Type Parameters
Name | Description |
---|---|
TModel | The model type |
ToActionResult<TModel>(IHtmlBuilderRenderer<TModel>, TModel, Nullable<HttpStatusCode>)
Creates an System.Web.Mvc.ActionResult from an IHtmlBuilderRenderer<TModel> and a TModel
Declaration
public static HtmlBuilderRendererResult<TModel> ToActionResult<TModel>(this IHtmlBuilderRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = default (HttpStatusCode? ))
Parameters
Type | Name | Description |
---|---|---|
IHtmlBuilderRenderer<TModel> | view | The view |
TModel | model | The model |
System.Nullable<System.Net.HttpStatusCode> | statusCode | A custom status code |
Returns
Type | Description |
---|---|
HtmlBuilderRendererResult<TModel> | An System.Web.Mvc.ActionResult |
Type Parameters
Name | Description |
---|---|
TModel | The model type |