Dela via


ControllerBase Class

Definition

A base class for an MVC controller without view support.

public ref class ControllerBase abstract
[Microsoft.AspNetCore.Mvc.Controller]
public abstract class ControllerBase
[<Microsoft.AspNetCore.Mvc.Controller>]
type ControllerBase = class
Public MustInherit Class ControllerBase
Inheritance
ControllerBase
Derived
Attributes

Constructors

ControllerBase()

Properties

ControllerContext

Gets or sets the ControllerContext.

Empty

Gets an instance of EmptyResult.

HttpContext

Gets the HttpContext for the executing action.

MetadataProvider

Gets or sets the IModelMetadataProvider.

ModelBinderFactory

Gets or sets the IModelBinderFactory.

ModelState

Gets the ModelStateDictionary that contains the state of the model and of model-binding validation.

ObjectValidator

Gets or sets the IObjectModelValidator.

ProblemDetailsFactory

Gets or sets the ProblemDetailsFactory.

Request

Gets the HttpRequest for the executing action.

Response

Gets the HttpResponse for the executing action.

RouteData

Gets the RouteData for the executing action.

Url

Gets or sets the IUrlHelper.

User

Gets the ClaimsPrincipal for user associated with the executing action.

Methods

Accepted()

Creates an AcceptedResult object that produces a Status202Accepted response.

Accepted(Object)

Creates an AcceptedResult object that produces a Status202Accepted response.

Accepted(String, Object)

Creates an AcceptedResult object that produces a Status202Accepted response.

Accepted(String)

Creates an AcceptedResult object that produces a Status202Accepted response.

Accepted(Uri, Object)

Creates an AcceptedResult object that produces a Status202Accepted response.

Accepted(Uri)

Creates an AcceptedResult object that produces a Status202Accepted response.

AcceptedAtAction(String, Object, Object)

Creates an AcceptedAtActionResult object that produces a Status202Accepted response.

AcceptedAtAction(String, Object)

Creates an AcceptedAtActionResult object that produces a Status202Accepted response.

AcceptedAtAction(String, String, Object, Object)

Creates an AcceptedAtActionResult object that produces a Status202Accepted response.

AcceptedAtAction(String, String, Object)

Creates an AcceptedAtActionResult object that produces a Status202Accepted response.

AcceptedAtAction(String, String)

Creates an AcceptedAtActionResult object that produces a Status202Accepted response.

AcceptedAtAction(String)

Creates an AcceptedAtActionResult object that produces a Status202Accepted response.

AcceptedAtRoute(Object, Object)

Creates an AcceptedAtRouteResult object that produces a Status202Accepted response.

AcceptedAtRoute(Object)

Creates an AcceptedAtRouteResult object that produces a Status202Accepted response.

AcceptedAtRoute(String, Object, Object)

Creates an AcceptedAtRouteResult object that produces a Status202Accepted response.

AcceptedAtRoute(String, Object)

Creates an AcceptedAtRouteResult object that produces a Status202Accepted response.

AcceptedAtRoute(String)

Creates an AcceptedAtRouteResult object that produces a Status202Accepted response.

BadRequest()

Creates a BadRequestResult that produces a Status400BadRequest response.

BadRequest(ModelStateDictionary)

Creates a BadRequestObjectResult that produces a Status400BadRequest response.

BadRequest(Object)

Creates a BadRequestObjectResult that produces a Status400BadRequest response.

Challenge()

Creates a ChallengeResult.

Challenge(AuthenticationProperties, String[])

Creates a ChallengeResult with the specified specified authentication schemes and properties.

Challenge(AuthenticationProperties, String[])

Creates a ChallengeResult with the specified authentication schemes and properties.

Challenge(AuthenticationProperties)

Creates a ChallengeResult with the specified properties.

Challenge(AuthenticationProperties)

Creates a ChallengeResult with the specified properties.

Challenge(String[])

Creates a ChallengeResult with the specified authentication schemes.

Conflict()

Creates a ConflictResult that produces a Status409Conflict response.

Conflict(ModelStateDictionary)

Creates a ConflictObjectResult that produces a Status409Conflict response.

Conflict(Object)

Creates a ConflictObjectResult that produces a Status409Conflict response.

Content(String, MediaTypeHeaderValue)

Creates a ContentResult object by specifying a content string and a contentType.

Content(String, String, Encoding)

Creates a ContentResult object by specifying a content string, a contentType, and contentEncoding.

Content(String, String)

Creates a ContentResult object by specifying a content string and a content type.

Content(String)

Creates a ContentResult object by specifying a content string.

Created()

Creates a CreatedResult object that produces a Status201Created response.

Created(String, Object)

Creates a CreatedResult object that produces a Status201Created response.

Created(Uri, Object)

Creates a CreatedResult object that produces a Status201Created response.

CreatedAtAction(String, Object, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

CreatedAtAction(String, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

CreatedAtAction(String, String, Object, Object)

Creates a CreatedAtActionResult object that produces a Status201Created response.

CreatedAtRoute(Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(String, Object, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

CreatedAtRoute(String, Object)

Creates a CreatedAtRouteResult object that produces a Status201Created response.

File(Byte[], String, Boolean)

Returns a file with the specified fileContents as content (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns a file with the specified fileContents as content (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns a file with the specified fileContents as content (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, String, Boolean)

Returns a file with the specified fileContents as content (Status200OK), the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns a file with the specified fileContents as content (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns a file with the specified fileContents as content (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String, String)

Returns a file with the specified fileContents as content (Status200OK), the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Byte[], String)

Returns a file with the specified fileContents as content (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, Boolean)

Returns a file in the specified fileStream (Status200OK), with the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns a file in the specified fileStream (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns a file in the specified fileStream (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, String, Boolean)

Returns a file in the specified fileStream (Status200OK) with the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns a file in the specified fileStream (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns a file in the specified fileStream (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String, String)

Returns a file in the specified fileStream (Status200OK) with the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(Stream, String)

Returns a file in the specified fileStream (Status200OK), with the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, Boolean)

Returns the file specified by virtualPath (Status200OK) with the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns the file specified by virtualPath (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns the file specified by virtualPath (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, String, Boolean)

Returns the file specified by virtualPath (Status200OK) with the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns the file specified by virtualPath (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns the file specified by virtualPath (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String, String)

Returns the file specified by virtualPath (Status200OK) with the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

File(String, String)

Returns the file specified by virtualPath (Status200OK) with the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

Forbid()

Creates a ForbidResult (Status403Forbidden by default).

Forbid(AuthenticationProperties, String[])

Creates a ForbidResult (Status403Forbidden by default) with the specified authentication schemes and properties.

Forbid(AuthenticationProperties, String[])

Creates a ForbidResult with the specified specified authentication schemes and properties.

Forbid(AuthenticationProperties)

Creates a ForbidResult (Status403Forbidden by default) with the specified properties.

Forbid(AuthenticationProperties)

Creates a ForbidResult with the specified properties.

Forbid(String[])

Creates a ForbidResult (Status403Forbidden by default) with the specified authentication schemes.

LocalRedirect(String)

Creates a LocalRedirectResult object that redirects (Status302Found) to the specified local localUrl.

LocalRedirectPermanent(String)

Creates a LocalRedirectResult object with Permanent set to true (Status301MovedPermanently) using the specified localUrl.

LocalRedirectPermanentPreserveMethod(String)

Creates a LocalRedirectResult object with Permanent set to true and PreserveMethod set to true (Status308PermanentRedirect) using the specified localUrl.

LocalRedirectPreserveMethod(String)

Creates a LocalRedirectResult object with Permanent set to false and PreserveMethod set to true (Status307TemporaryRedirect) using the specified localUrl.

NoContent()

Creates a NoContentResult object that produces an empty Status204NoContent response.

NotFound()

Creates a NotFoundResult that produces a Status404NotFound response.

NotFound(Object)

Creates a NotFoundObjectResult that produces a Status404NotFound response.

Ok()

Creates an OkResult object that produces an empty Status200OK response.

Ok(Object)

Creates an OkObjectResult object that produces a Status200OK response.

PhysicalFile(String, String, Boolean)

Returns the file specified by physicalPath (Status200OK) with the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns the file specified by physicalPath (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns the file specified by physicalPath (Status200OK), and the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, String, Boolean)

Returns the file specified by physicalPath (Status200OK) with the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue, Boolean)

Returns the file specified by physicalPath (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, String, Nullable<DateTimeOffset>, EntityTagHeaderValue)

Returns the file specified by physicalPath (Status200OK), the specified contentType as the Content-Type, and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String, String)

Returns the file specified by physicalPath (Status200OK) with the specified contentType as the Content-Type and the specified fileDownloadName as the suggested file name. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

PhysicalFile(String, String)

Returns the file specified by physicalPath (Status200OK) with the specified contentType as the Content-Type. This supports range requests (Status206PartialContent or Status416RangeNotSatisfiable if the range is not satisfiable).

Problem(String, String, Nullable<Int32>, String, String, IDictionary<String,Object>)

Creates an ObjectResult that produces a ProblemDetails response.

Problem(String, String, Nullable<Int32>, String, String)

Creates an ObjectResult that produces a ProblemDetails response.

Redirect(String)

Creates a RedirectResult object that redirects (Status302Found) to the specified url.

RedirectPermanent(String)

Creates a RedirectResult object with Permanent set to true (Status301MovedPermanently) using the specified url.

RedirectPermanentPreserveMethod(String)

Creates a RedirectResult object with Permanent set to true and PreserveMethod set to true (Status308PermanentRedirect) using the specified url.

RedirectPreserveMethod(String)

Creates a RedirectResult object with Permanent set to false and PreserveMethod set to true (Status307TemporaryRedirect) using the specified url.

RedirectToAction()

Redirects (Status302Found) to an action with the same name as current one. The 'controller' and 'action' names are retrieved from the ambient values of the current request.

RedirectToAction(String, Object)

Redirects (Status302Found) to the specified action using the actionName and routeValues.

RedirectToAction(String, String, Object, String)

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, routeValues, and fragment.

RedirectToAction(String, String, Object)

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, and routeValues.

RedirectToAction(String, String, String)

Redirects (Status302Found) to the specified action using the specified actionName, controllerName, and fragment.

RedirectToAction(String, String)

Redirects (Status302Found) to the specified action using the actionName and the controllerName.

RedirectToAction(String)

Redirects (Status302Found) to the specified action using the actionName.

RedirectToActionPermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName and routeValues.

RedirectToActionPermanent(String, String, Object, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, routeValues, and fragment.

RedirectToActionPermanent(String, String, Object)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, and routeValues.

RedirectToActionPermanent(String, String, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName, controllerName, and fragment.

RedirectToActionPermanent(String, String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName and controllerName.

RedirectToActionPermanent(String)

Redirects (Status301MovedPermanently) to the specified action with Permanent set to true using the specified actionName.

RedirectToActionPermanentPreserveMethod(String, String, Object, String)

Redirects (Status308PermanentRedirect) to the specified action with Permanent set to true and PreserveMethod set to true, using the specified actionName, controllerName, routeValues, and fragment.

RedirectToActionPreserveMethod(String, String, Object, String)

Redirects (Status307TemporaryRedirect) to the specified action with Permanent set to false and PreserveMethod set to true, using the specified actionName, controllerName, routeValues, and fragment.

RedirectToPage(String, Object)

Redirects (Status302Found) to the specified pageName using the specified routeValues.

RedirectToPage(String, String, Object, String)

Redirects (Status302Found) to the specified pageName using the specified routeValues and fragment.

RedirectToPage(String, String, Object)

Redirects (Status302Found) to the specified pageName.

RedirectToPage(String, String, String)

Redirects (Status302Found) to the specified pageName using the specified fragment.

RedirectToPage(String, String)

Redirects (Status302Found) to the specified pageName using the specified pageHandler.

RedirectToPage(String)

Redirects (Status302Found) to the specified pageName.

RedirectToPagePermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified pageName using the specified routeValues.

RedirectToPagePermanent(String, String, Object, String)

Redirects (Status301MovedPermanently) to the specified pageName using the specified routeValues and fragment.

RedirectToPagePermanent(String, String, String)

Redirects (Status301MovedPermanently) to the specified pageName using the specified fragment.

RedirectToPagePermanent(String, String)

Redirects (Status301MovedPermanently) to the specified pageName using the specified pageHandler.

RedirectToPagePermanent(String)

Redirects (Status301MovedPermanently) to the specified pageName.

RedirectToPagePermanentPreserveMethod(String, String, Object, String)

Redirects (Status308PermanentRedirect) to the specified route with Permanent set to true and PreserveMethod set to true, using the specified pageName, routeValues, and fragment.

RedirectToPagePreserveMethod(String, String, Object, String)

Redirects (Status307TemporaryRedirect) to the specified page with Permanent set to false and PreserveMethod set to true, using the specified pageName, routeValues, and fragment.

RedirectToRoute(Object)

Redirects (Status302Found) to the specified route using the specified routeValues.

RedirectToRoute(String, Object, String)

Redirects (Status302Found) to the specified route using the specified routeName, routeValues, and fragment.

RedirectToRoute(String, Object)

Redirects (Status302Found) to the specified route using the specified routeName and routeValues.

RedirectToRoute(String, String)

Redirects (Status302Found) to the specified route using the specified routeName and fragment.

RedirectToRoute(String)

Redirects (Status302Found) to the specified route using the specified routeName.

RedirectToRoutePermanent(Object)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeValues.

RedirectToRoutePermanent(String, Object, String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName, routeValues, and fragment.

RedirectToRoutePermanent(String, Object)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName and routeValues.

RedirectToRoutePermanent(String, String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName and fragment.

RedirectToRoutePermanent(String)

Redirects (Status301MovedPermanently) to the specified route with Permanent set to true using the specified routeName.

RedirectToRoutePermanentPreserveMethod(String, Object, String)

Redirects (Status308PermanentRedirect) to the specified route with Permanent set to true and PreserveMethod set to true, using the specified routeName, routeValues, and fragment.

RedirectToRoutePreserveMethod(String, Object, String)

Redirects (Status307TemporaryRedirect) to the specified route with Permanent set to false and PreserveMethod set to true, using the specified routeName, routeValues, and fragment.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified specified authentication scheme and properties.

SignIn(ClaimsPrincipal, AuthenticationProperties, String)

Creates a SignInResult with the specified authentication scheme and properties.

SignIn(ClaimsPrincipal, AuthenticationProperties)

Creates a SignInResult with properties.

SignIn(ClaimsPrincipal, String)

Creates a SignInResult with the specified authentication scheme.

SignIn(ClaimsPrincipal)

Creates a SignInResult.

SignOut()

Creates a SignOutResult.

SignOut(AuthenticationProperties, String[])

Creates a SignOutResult with the specified authentication schemes and properties.

SignOut(AuthenticationProperties, String[])

Creates a SignOutResult with the specified specified authentication schemes and properties.

SignOut(AuthenticationProperties)

Creates a SignOutResult with properties.

SignOut(String[])

Creates a SignOutResult with the specified authentication schemes.

StatusCode(Int32, Object)

Creates an ObjectResult object by specifying a statusCode and value

StatusCode(Int32)

Creates a StatusCodeResult object by specifying a statusCode.

TryUpdateModelAsync(Object, Type, String, IValueProvider, Func<ModelMetadata,Boolean>)

Updates the specified model instance using the valueProvider and a prefix.

TryUpdateModelAsync(Object, Type, String)

Updates the specified model instance using values from the controller's current IValueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel, String, Expression<Func<TModel,Object>>[])

Updates the specified model instance using values from the controller's current IValueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel, String, Func<ModelMetadata,Boolean>)

Updates the specified model instance using values from the controller's current IValueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Expression<Func<TModel,Object>>[])

Updates the specified model instance using the valueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider, Func<ModelMetadata,Boolean>)

Updates the specified model instance using the valueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel, String, IValueProvider)

Updates the specified model instance using the valueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel, String)

Updates the specified model instance using values from the controller's current IValueProvider and a prefix.

TryUpdateModelAsync<TModel>(TModel)

Updates the specified model instance using values from the controller's current IValueProvider.

TryValidateModel(Object, String)

Validates the specified model instance.

TryValidateModel(Object)

Validates the specified model instance.

Unauthorized()

Creates an UnauthorizedResult that produces a Status401Unauthorized response.

Unauthorized(Object)

Creates an UnauthorizedObjectResult that produces a Status401Unauthorized response.

UnprocessableEntity()

Creates an UnprocessableEntityResult that produces a Status422UnprocessableEntity response.

UnprocessableEntity(ModelStateDictionary)

Creates an UnprocessableEntityObjectResult that produces a Status422UnprocessableEntity response.

UnprocessableEntity(Object)

Creates an UnprocessableEntityObjectResult that produces a Status422UnprocessableEntity response.

ValidationProblem()

Creates an ActionResult that produces a Status400BadRequest response with validation errors from ModelState.

ValidationProblem(ModelStateDictionary)

Creates an ActionResult that produces a Status400BadRequest response with validation errors from modelStateDictionary.

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary, IDictionary<String,Object>)

Creates an ActionResult that produces a Status400BadRequest response with a ValidationProblemDetails value.

ValidationProblem(String, String, Nullable<Int32>, String, String, ModelStateDictionary)

Creates an ActionResult that produces a Status400BadRequest response with a ValidationProblemDetails value.

ValidationProblem(ValidationProblemDetails)

Creates a BadRequestObjectResult that produces a Status400BadRequest response.

Applies to