Skip to content

Commit eca8ac7

Browse files
authored
Update 10/umbraco-cms/reference/routing/custom-routes.md
1 parent 1a31ae5 commit eca8ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public IActionResult Product(string id)
135135
}
136136
```
137137

138-
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.
138+
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.
139139

140140
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:
141141

0 commit comments

Comments
 (0)