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
parent
38fac8af7d
commit
28e6a92329
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue