Razor Pages Routing Best Practise
Hi all, I'm looking for best practise with regards to razor page routing.
In this example say I have a resource /blog
I want a razor page for that resource and for /blog/123
What is best practise to carry this out? Currently I've got a folder in pages called Blog with an Index.cshtml page. This takes care of /blog/123. I've also then got Blog.cshtml in the route of Pages to take care of /blog
Is this best practise or is there something else?
0 comments:
Post a Comment