I have a desktop system that calls a PHP script (script.php) and I send a parameter called by "x" to this script (ex: script.php?x=123), but now the PHP scripts are being rewritten in ASP.NET/MVC, but I can't change the desktop system, then I've created a route like this:
routes.MapRoute("ScriptPHP",
"myscript/script.php",
new { controller = "MyController", action = "MyAction", x = UrlParameter.Optional }
);
The problem is: MyAction receives a parameter named "id" (MyAction(int id)), and this route works only if I call "script.php?id=123".
How do I send the parameter "x" and this route convert "x" to "id" parameter name? It's possible?
NOTE: I can't change the action parameters.