| Helper | Description |
|---|---|
| ModelStateDictionary.AddError(key, errorMessage) | Associates an error message with a form field. Use the ModelState helper to access this member. |
| ModelStateDictionary.AddFormError(errorMessage) | Associates an error message with a form. Use the ModelState helper to access this member. |
| ModelStateDictionary.IsValid | Returns true if there are no validation errors. Use the ModelState helper to access this member. |
Practice Excercise Practice now