1 write to ModelState
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Validation\ValidationVisitor.cs (1)
48ModelState = actionContext.ModelState;
11 references to ModelState
Microsoft.AspNetCore.Mvc.Core (11)
ModelBinding\Validation\ValidationVisitor.cs (11)
178var entry = ModelState[key]; 205var state = ModelState.GetValidationState(Key); 237ModelState.TryAddModelError(key, result.Message); 242state = ModelState.GetFieldValidationState(Key); 251var entry = ModelState[Key]; 323if (ModelState.HasReachedMaxErrors) 337ModelState.GetFieldValidationState(key) != ModelValidationState.Invalid) 345var entries = ModelState.FindKeysWithPrefix(key); 397if ((isValid || ValidateComplexTypesIfChildValidationFails) && !ModelState.HasReachedMaxErrors) 411if (ModelState.HasReachedMaxErrors) 463var entries = ModelState.FindKeysWithPrefix(key);