Updated link from MSDN to docs (#6419)

pull/6421/head
Alfred Myers 2018-05-14 21:22:39 -03:00 committed by Luke Latham
parent d3814fe891
commit 371b27fc19
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ When a client sends data to your web API, often you want to validate the data be
## Data Annotations
In ASP.NET Web API, you can use attributes from the [System.ComponentModel.DataAnnotations](https://msdn.microsoft.com/library/system.componentmodel.dataannotations.aspx) namespace to set validation rules for properties on your model. Consider the following model:
In ASP.NET Web API, you can use attributes from the [System.ComponentModel.DataAnnotations](/dotnet/api/system.componentmodel.dataannotations) namespace to set validation rules for properties on your model. Consider the following model:
[!code-csharp[Main](model-validation-in-aspnet-web-api/samples/sample1.cs)]