Show / Hide Table of Contents

Class EightyActionResultFactory

Methods for creating System.Web.Mvc.ActionResults

Inheritance
Object
EightyActionResultFactory
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Eighty.AspNet.Mvc.ActionResults
Assembly: Eighty.AspNet.Mvc.dll
Syntax
public static class EightyActionResultFactory

Methods

| Improve this Doc View Source

Create(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

| Improve this Doc View Source

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

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX