CC63734: Fixing broken link (#7539)

Hello, @rick-anderson ,
This proposed file change comes from https://github.com/aspnet/Docs.zh-tw/pull/56.

Could you review this contribution and help to merge if agreed?

Many thanks in advance.
pull/7542/head
Mauricio de los Santos 2018-07-10 12:57:12 -03:00 committed by Rick Anderson
parent 63866631d0
commit 97f31c8b47
1 changed files with 1 additions and 1 deletions

View File

@ -690,7 +690,7 @@ Conceptually, `IActionConstraint` is a form of *overloading*, but instead of ove
The simplest way to implement an `IActionConstraint` is to create a class derived from `System.Attribute` and place it on your actions and controllers. MVC will automatically discover any `IActionConstraint` that are applied as attributes. You can use the application model to apply constraints, and this is probably the most flexible approach as it allows you to metaprogram how they're applied. The simplest way to implement an `IActionConstraint` is to create a class derived from `System.Attribute` and place it on your actions and controllers. MVC will automatically discover any `IActionConstraint` that are applied as attributes. You can use the application model to apply constraints, and this is probably the most flexible approach as it allows you to metaprogram how they're applied.
In the following example a constraint chooses an action based on a *country code* from the route data. The [full sample on GitHub](https://github.com/aspnet/Entropy/blob/dev/samples/Mvc.ActionConstraintSample.Web/CountrySpecificAttribute.cs). In the following example a constraint chooses an action based on a *country code* from the route data. The [full sample on GitHub](https://github.com/aspnet/Entropy/blob/master/samples/Mvc.ActionConstraintSample.Web/CountrySpecificAttribute.cs).
```csharp ```csharp
public class CountrySpecificAttribute : Attribute, IActionConstraint public class CountrySpecificAttribute : Attribute, IActionConstraint