1 write to ModelState
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\InputFormatterContext.cs (1)
76
ModelState
= modelState;
4 references to ModelState
Microsoft.AspNetCore.Mvc.Abstractions (1)
Formatters\InputFormatterContext.cs (1)
98
/// Gets the name of the model. Used as the key or key prefix for errors added to <see cref="
ModelState
"/>.
Microsoft.AspNetCore.Mvc.Core (3)
Formatters\SystemTextJsonInputFormatter.cs (2)
94
context.
ModelState
.TryAddModelError(path, modelStateException, context.Metadata);
105
context.
ModelState
.TryAddModelError(string.Empty, exception, context.Metadata);
Formatters\TextInputFormatter.cs (1)
46
context.
ModelState
.AddModelError(context.ModelName, exception, context.Metadata);