I have an asp.net MVC project where i need to define some custom routes. Similar to what you see for posts on WordPress where the route is of the form postid-postname:
12-i-am-post
I know how to do something like postid/postname:
12/i-am-post.
But how do I make a route that combines the two, such as:
mywebsite.com/12-postname-is-her
Should work for the following request http://localhost/Post/1-MyPostName