Skip to content

Commit c4032ec

Browse files
authored
Update 15/umbraco-cms/reference/routing/custom-routes.md
1 parent c659f45 commit c4032ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

123-
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.
123+
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.
124124

125125
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:
126126

0 commit comments

Comments
 (0)