[]
Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad Request (400) response.
public override BadRequestObjectResult BadRequest(ModelStateDictionary modelState)
Type | Name | Description |
---|---|---|
ModelStateDictionary | modelState |
Type | Description |
---|---|
BadRequestObjectResult | The created Microsoft.AspNetCore.Mvc.BadRequestObjectResult for the response. |
Creates an Microsoft.AspNetCore.Mvc.BadRequestObjectResult that produces a Bad Request (400) response.
public override BadRequestObjectResult BadRequest(object error)
Type | Name | Description |
---|---|---|
object | error |
Type | Description |
---|---|
BadRequestObjectResult | The created Microsoft.AspNetCore.Mvc.BadRequestObjectResult for the response. |