I would like to know how to set up the routing in asp.net mvc so I can have similar urls to stackoverflows question urls?
http://stackoverflow.com/questions/115634/do-you-believe-that-asp-net-mvc-is-ready-for-production/
I am guessing that for url creation there is a helper class that creates the question urls.
The part i am wondering is how this is implemented on the Controller side. I think that most probably the home controller has a questions action and the id is 115634. Then comes the title of the question - I guess this is for search engine optimization. My problem is how the controller method signature would look like.
Is it a Question(int? id) or Question(string? param) that contains both the id and the title?
How would one implement this?