C# Class NServiceMVC.WebStack.HttpStatusContentResult

An actionresult type that is basically a combination of System.Web.Mvc.HttpStatusCodeResult and System.Web.Mvc.ContentResult
Inheritance: System.Web.Mvc.ActionResult
Exibir arquivo Open project: gregmac/NServiceMVC

Public Methods

Method Description
ExecuteResult ( ControllerContext context ) : void
HttpStatusContentResult ( ) : System

Content with status 200 OK

HttpStatusContentResult ( int statusCode ) : System

Content with a specific status code

HttpStatusContentResult ( int statusCode, System.Web.Mvc.ContentResult content ) : System

Wraps an existing content result with a specific status code

HttpStatusContentResult ( int statusCode, string statusDescription ) : System

Content with a specific status code and description

HttpStatusContentResult ( int statusCode, string statusDescription, System.Web.Mvc.ContentResult content ) : System

Wraps an existing content result with a specific status code

Method Details

ExecuteResult() public method

public ExecuteResult ( ControllerContext context ) : void
context ControllerContext
return void

HttpStatusContentResult() public method

Content with status 200 OK
public HttpStatusContentResult ( ) : System
return System

HttpStatusContentResult() public method

Content with a specific status code
public HttpStatusContentResult ( int statusCode ) : System
statusCode int
return System

HttpStatusContentResult() public method

Wraps an existing content result with a specific status code
public HttpStatusContentResult ( int statusCode, System.Web.Mvc.ContentResult content ) : System
statusCode int
content System.Web.Mvc.ContentResult
return System

HttpStatusContentResult() public method

Content with a specific status code and description
public HttpStatusContentResult ( int statusCode, string statusDescription ) : System
statusCode int
statusDescription string
return System

HttpStatusContentResult() public method

Wraps an existing content result with a specific status code
public HttpStatusContentResult ( int statusCode, string statusDescription, System.Web.Mvc.ContentResult content ) : System
statusCode int
statusDescription string
content System.Web.Mvc.ContentResult
return System