Show / Hide Table of Contents

Class EightyActionResultFactory

Methods for creating ActionResults

Inheritance
Object
EightyActionResultFactory
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
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 ActionResult from some Html

Declaration
public static HtmlResult Create(Html html, HttpStatusCode? statusCode = default(HttpStatusCode? ))
Parameters
Type Name Description
Html html

The HTML

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlResult

An ActionResult

| Improve this Doc View Source

Create(HtmlBuilder, Nullable<HttpStatusCode>)

Creates an ActionResult from an HtmlBuilder

Declaration
public static HtmlBuilderResult Create(HtmlBuilder htmlBuilder, HttpStatusCode? statusCode = default(HttpStatusCode? ))
Parameters
Type Name Description
HtmlBuilder htmlBuilder

The HTML builder

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlBuilderResult

An ActionResult

| Improve this Doc View Source

Create<TModel>(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>)

Creates an 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

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlRendererResult<TModel>

An ActionResult

Type Parameters
Name Description
TModel

The model type

| Improve this Doc View Source

Create<TModel>(IHtmlBuilderRenderer<TModel>, TModel, Nullable<HttpStatusCode>)

Creates an 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

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlBuilderRendererResult<TModel>

An ActionResult

Type Parameters
Name Description
TModel

The model type

| Improve this Doc View Source

ToActionResult(Html, Nullable<HttpStatusCode>)

Creates an ActionResult from some Html

Declaration
public static HtmlResult ToActionResult(this Html html, HttpStatusCode? statusCode = default(HttpStatusCode? ))
Parameters
Type Name Description
Html html

The HTML

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlResult

An ActionResult

| Improve this Doc View Source

ToActionResult(HtmlBuilder, Nullable<HttpStatusCode>)

Creates an 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

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlBuilderResult

An ActionResult

| Improve this Doc View Source

ToActionResult<TModel>(IHtmlRenderer<TModel>, TModel, Nullable<HttpStatusCode>)

Creates an 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

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlRendererResult<TModel>

An ActionResult

Type Parameters
Name Description
TModel

The model type

| Improve this Doc View Source

ToActionResult<TModel>(IHtmlBuilderRenderer<TModel>, TModel, Nullable<HttpStatusCode>)

Creates an 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

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlBuilderRendererResult<TModel>

An ActionResult

Type Parameters
Name Description
TModel

The model type

  • Improve this Doc
  • View Source
Back to top Generated by DocFX