I have mostly static view pages, for example:
http://www.yoursite.com/games/x-box-360/nba-2k-11.aspx http://www.yoursite.com/games/psp/ben-10.aspx
How can I build this in my controller? This is what I previously encoded in my game controller:
[HandleError]
public class GamesController : Controller
{
public ActionResult ben-10()
{
return View();
}
}
But this gives me an error due to a hyphen in the name of the controller action.
How to resolve this?
source
share