Skip to content

Commit

Permalink
Update routing.md to change one typo (#2536)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
jierong authored and Rick-Anderson committed Jan 19, 2017
1 parent 38fac8a commit 28e6a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/mvc/controllers/routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 28e6a92

Please sign in to comment.