I want my URLs use '-' but the C# method 开发者_JAVA技巧name cannot contains that character. How do I make this route?
You would need to define a new route handler which handles the hyphens before the controller and action elements are mapped to class and methods. Check out this StackOverflow question
精彩评论