From 371b27fc192ea142a6289d2147c11328ad106393 Mon Sep 17 00:00:00 2001 From: Alfred Myers Date: Mon, 14 May 2018 21:22:39 -0300 Subject: [PATCH] Updated link from MSDN to docs (#6419) --- .../model-validation-in-aspnet-web-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnet/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api.md b/aspnet/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api.md index 891074d935..ce0ee334b9 100644 --- a/aspnet/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api.md +++ b/aspnet/web-api/overview/formats-and-model-binding/model-validation-in-aspnet-web-api.md @@ -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)]