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)]