We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
I'm really not sure that it is better practice. I just noticed that MapRoute() was what the default MVC template used to registered routes. It could very well be that it's not the preferred method. Sorry I'm not more helpful =/
if I understand correctly, you can just decorate like...
[ActionName("edit-product")]
public ActionResult EditProduct( int id )
{
//...
}
I am trying same one but getting error: view not found. Actually it is searching view in root instead of views in Area. Can anyone pls help?
Did you define the "areaName" correctly in the route? E.g. "blog/{controller}/{action}/{id}" if your area name was "blog".
Thank you! And exactly what I need it for, too--hyphenated route handling.
Todd Shelton (Cloudrocket)
Thanks for linking to my blog post. Do you know why it is better practise to use the MapRoute() method, I wasn't aware of this but would be good to know a bit more info.
Cheers,
Andi
Zero7Web