Skip to content

Commit f562564

Browse files
Update routing.md (#18448)
1 parent 497fde5 commit f562564

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

aspnetcore/mvc/controllers/routing.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,10 @@ The `HomeController.Index` action is run for any of the URL paths `/`, `/Home`,
272272

273273
This example highlights a key programming difference between attribute routing and [conventional routing](#cr). Attribute routing requires more input to specify a route. The conventional default route handles routes more succinctly. However, attribute routing allows and requires precise control of which route templates apply to each [action](#action).
274274

275-
With attribute routing, the controller name and action names play **no** role in which action is matched. The following example matches the same URLs as the previous example:
275+
In the following code:
276+
277+
* The controller name and action names play **no** role in which action is matched.
278+
* Matches the same URLs as the previous example:
276279

277280
[!code-csharp[](routing/samples/3.x/main/Controllers/MyDemoController.cs?name=snippet)]
278281

0 commit comments

Comments
 (0)