Skip to content

Commit 186dfc1

Browse files
authored
Update 13/umbraco-cms/reference/routing/custom-routes.md
1 parent 2a3a786 commit 186dfc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

13/umbraco-cms/reference/routing/custom-routes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public IActionResult Product(string id)
121121
}
122122
```
123123

124-
This method is a bit more interesting, here we get some extra data from a different source, in this case a `DbContext`, but this can be anything you want, using the id we get from the route values. We use this extra data to create a custom model, which includes the available stores, which we then render the view with.
124+
Here, we get some extra data from a different source. In this case, a `DbContext`, but this can be anything you want, using the ID we get from the route values. We use this extra data to create a custom model, which includes the available stores, which we then render the view with.
125125

126126
It's important to note that this custom model must implement `IPublishedContent`, to do this we inherit from the `ContentModel` class, in this case our model looks like this:
127127

0 commit comments

Comments
 (0)