diff --git a/aspnet/mvc/models/validation.rst b/aspnet/mvc/models/validation.rst index 199b4f50ae..4602f9f163 100644 --- a/aspnet/mvc/models/validation.rst +++ b/aspnet/mvc/models/validation.rst @@ -58,7 +58,7 @@ MVC will continue validating fields until reaches the maximum number of errors ( Handling Model State Errors --------------------------- -Model validation occurs prior to each controller action being invoked, and it is the action method’s responsibility to inspect ModelState.IsValid and react appropriately. In many cases, the appropriate reaction is to return some kind of error response, ideally detailing the reason why model validation failed. +Model validation occurs prior to each controller action being invoked, and it is the action method’s responsibility to inspect ``ModelState.IsValid`` and react appropriately. In many cases, the appropriate reaction is to return some kind of error response, ideally detailing the reason why model validation failed. Some apps will choose to follow a standard convention for dealing with model validation errors, in which case a filter may be an appropriate place to implement such a policy. You should test how your actions behave with valid and invalid model states.