I currently have an action defined in my controller:
// GET: /schools/:cleanUrlName/data-loggers public ActionResult DataLoggers(string cleanUrlName) { return View(); }
This works when I click "/ school / brisbane-state-high-school / dataloggers", however - according to the comment - I want to access it via a slightly cleaner URL (using hyphens): "/ school / brisbane - state-high school / data loggers. " I know that I can write a route to accomplish this, but I was hoping that I would not have to write a new route for each multitask action / controller. Is there a better way to solve this problem?
asp.net-mvc asp.net-mvc-4 asp.net-mvc-routing
Brett Sep 03 '13 at 5:11 2013-09-03 05:11
source share