From 6cd9cf14d6b4b010315fc0c38a91f3b10b1c3576 Mon Sep 17 00:00:00 2001 From: Rick Anderson Date: Sun, 23 Apr 2017 06:13:56 -1000 Subject: [PATCH] Update validation.md (#3257) Per customer feedback Robin_St.Clair please do not use the word consume, in this context, it is nonsensical and an abuse of English, it is preferable to write - The Input Tag Helper uses the DataAnnotations attributes and . . . --- aspnetcore/includes/mvc-intro/validation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/includes/mvc-intro/validation.md b/aspnetcore/includes/mvc-intro/validation.md index fdb638fd06..0b2fb0c07a 100644 --- a/aspnetcore/includes/mvc-intro/validation.md +++ b/aspnetcore/includes/mvc-intro/validation.md @@ -65,7 +65,7 @@ Below is portion of the *Create.cshtml* view template that you scaffolded earlie [!code-HTML[Main](../../tutorials/first-mvc-app/start-mvc//sample/MvcMovie/Views/Movies/CreateRatingBrevity.cshtml)] -The [Input Tag Helper](xref:mvc/views/working-with-forms) consumes the [DataAnnotations](http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.aspx) attributes and produces HTML attributes needed for jQuery Validation on the client side. The [Validation Tag Helper](xref:mvc/views/working-with-forms#the-validation-tag-helpers) displays validation errors. See [Validation](xref:mvc/models/validation) for more information. +The [Input Tag Helper](xref:mvc/views/working-with-forms) uses the [DataAnnotations](http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.aspx) attributes and produces HTML attributes needed for jQuery Validation on the client side. The [Validation Tag Helper](xref:mvc/views/working-with-forms#the-validation-tag-helpers) displays validation errors. See [Validation](xref:mvc/models/validation) for more information. What's really nice about this approach is that neither the controller nor the `Create` view template knows anything about the actual validation rules being enforced or about the specific error messages displayed. The validation rules and the error strings are specified only in the `Movie` class. These same validation rules are automatically applied to the `Edit` view and any other views templates you might create that edit your model. @@ -119,4 +119,4 @@ In the next part of the series, we'll review the application and make some impro * [Working with Forms](xref:mvc/views/working-with-forms) * [Globalization and localization](xref:fundamentals/localization) * [Introduction to Tag Helpers](xref:mvc/views/tag-helpers/intro) -* [Authoring Tag Helpers](xref:mvc/views/tag-helpers/authoring) \ No newline at end of file +* [Authoring Tag Helpers](xref:mvc/views/tag-helpers/authoring)