Can I map an action’s parameter to a different name?
I want to use reserved words as parameters for an action, such as:
search?q=someQuery&in=location&for=x
So “in” and “for” can’t be used as parameter names of the method.
Is there a built in feature for that or should I create a model binder?
Thanks.
You can use the ‘@’ notation to make the name be interpreted literally rather than a reserved word in c#.