From 28e6a92329d500fcea901bc62fe843115d66a226 Mon Sep 17 00:00:00 2001 From: Jie RONG Date: Thu, 19 Jan 2017 08:30:51 +0800 Subject: [PATCH] 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) --- aspnetcore/mvc/controllers/routing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aspnetcore/mvc/controllers/routing.md b/aspnetcore/mvc/controllers/routing.md index 40260b6175..c8bfccab7f 100644 --- a/aspnetcore/mvc/controllers/routing.md +++ b/aspnetcore/mvc/controllers/routing.md @@ -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.