Show / Hide Table of Contents

Class EightyActionResultFactory

Methods for creating s

Inheritance
Object
EightyActionResultFactory
Namespace: Eighty.AspNetCore.Mvc.ActionResults
Assembly: Eighty.AspNetCore.dll
Syntax
public static class EightyActionResultFactory : object

Methods

| Improve this Doc View Source

Create(Html, Nullable<HttpStatusCode>, Boolean)

Creates an from some Html

Declaration
public static HtmlResult Create(Html html, HttpStatusCode? statusCode = null, bool renderAsync = false)
Parameters
Type Name Description
Html html

The HTML

Nullable<HttpStatusCode> statusCode

A custom status code

Boolean renderAsync

Write the HTML to the response asynchronously

Returns
Type Description
HtmlResult

An

| Improve this Doc View Source

Create(HtmlBuilder, Nullable<HttpStatusCode>)

Creates an from an HtmlBuilder

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

The HTML builder

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlBuilderResult

An

| Improve this Doc View Source

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

Creates an from an IHtmlRenderer<TModel> and a TModel

Declaration
public static HtmlRendererResult<TModel> Create<TModel>(IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = null, bool renderAsync = false)
Parameters
Type Name Description
IHtmlRenderer<TModel> view

The view

TModel model

The model

Nullable<HttpStatusCode> statusCode

A custom status code

Boolean renderAsync

Write the HTML to the response asynchronously

Returns
Type Description
HtmlRendererResult<TModel>

An

Type Parameters
Name Description
TModel

The model type

| Improve this Doc View Source

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

Creates an from an IHtmlBuilderRenderer<TModel> and a TModel

Declaration
public static HtmlBuilderRendererResult<TModel> Create<TModel>(IHtmlBuilderRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = null)
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

Type Parameters
Name Description
TModel

The model type

| Improve this Doc View Source

ToActionResult(Html, Nullable<HttpStatusCode>, Boolean)

Creates an from some Html

Declaration
public static HtmlResult ToActionResult(this Html html, HttpStatusCode? statusCode = null, bool renderAsync = false)
Parameters
Type Name Description
Html html

The HTML

Nullable<HttpStatusCode> statusCode

A custom status code

Boolean renderAsync

Write the HTML to the response asynchronously

Returns
Type Description
HtmlResult

An

| Improve this Doc View Source

ToActionResult(HtmlBuilder, Nullable<HttpStatusCode>)

Creates an from an HtmlBuilder

Declaration
public static HtmlBuilderResult ToActionResult(this HtmlBuilder htmlBuilder, HttpStatusCode? statusCode = null)
Parameters
Type Name Description
HtmlBuilder htmlBuilder

The HTML builder

Nullable<HttpStatusCode> statusCode

A custom status code

Returns
Type Description
HtmlBuilderResult

An

| Improve this Doc View Source

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

Creates an from an IHtmlRenderer<TModel> and a TModel

Declaration
public static HtmlRendererResult<TModel> ToActionResult<TModel>(this IHtmlRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = null, bool renderAsync = false)
Parameters
Type Name Description
IHtmlRenderer<TModel> view

The view

TModel model

The model

Nullable<HttpStatusCode> statusCode

A custom status code

Boolean renderAsync

Write the HTML to the response asynchronously

Returns
Type Description
HtmlRendererResult<TModel>

An

Type Parameters
Name Description
TModel

The model type

| Improve this Doc View Source

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

Creates an from an IHtmlBuilderRenderer<TModel> and a TModel

Declaration
public static HtmlBuilderRendererResult<TModel> ToActionResult<TModel>(this IHtmlBuilderRenderer<TModel> view, TModel model, HttpStatusCode? statusCode = null)
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

Type Parameters
Name Description
TModel

The model type

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