Skip to content

Commit

Permalink
Updated link from MSDN to docs (dotnet#6419)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredmyers authored and guardrex committed May 15, 2018
1 parent d3814fe commit 371b27f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

Expand Down

0 comments on commit 371b27f

Please sign in to comment.