Update routing.md to change one typo (#2536)

In sample code, it's 

public IActionResult GetProduct(int id) { ... }

But next line, it says The ProductsApi.GetProducts(int) , 

So update it to ProductsApi.GetProduct(int)
pull/2525/merge
Jie RONG 2017-01-19 08:30:51 +08:00 committed by Rick Anderson
parent 38fac8af7d
commit 28e6a92329
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ public class ProductsApiController : Controller
}
```
The `ProductsApi.GetProducts(int)` action will be executed for a URL path like `/products/3` but not for a URL path like `/products`. See [Routing](../../fundamentals/routing.md) for a full description of route templates and related options.
The `ProductsApi.GetProduct(int)` action will be executed for a URL path like `/products/3` but not for a URL path like `/products`. See [Routing](../../fundamentals/routing.md) for a full description of route templates and related options.
This route attribute also defines a *route name* of `Products_List`. Route names can be used to generate a URL based on a specific route. Route names have no impact on the URL matching behavior of routing and are only used for URL generation. Route names must be unique application-wide.