Validation Model State
Encapsulates the state of model binding to a property of an action-method argument, or to the argument itself.
errors object[]
Gets a ModelErrorCollection object that contains any errors that occurred during model binding.
Array [
errorMessagestring
Gets or sets the error message.
exceptionobject
Gets or sets the exception object.
]
value object
Gets a ValueProviderResult object that encapsulates the value that was being bound during model binding.
attemptedValuestring
Gets or sets the raw value that is converted to a string for display.
culturestring
Gets or sets the culture.
rawValueobject
Gets or set the raw value that is supplied by the value provider.
Validation Model State
{
"errors": [
{
"errorMessage": "string",
"exception": {}
}
],
"value": {
"attemptedValue": "string",
"culture": "string",
"rawValue": {}
}
}