In MVC, I know we can get parameters from a get request like this:
Request:
http://www.example.com/method?param1=good¶m2=bad
And in controller
public ActionResult method(string param1, string param2)
{
....
}
But in my situation an external website sends me a get request like:
http://www.example.com/method?param.1=good¶m.2=bad
And in controller when i try to meet this request like as follow:
public ActionResult method(string param.1, string param.2)
{
....
}
I get build errors because of dot in variable name. How can i get these parameters ? Unfortunately i can not ask them to change parameter names.