title: How do I remap an MVC action parameter to another parameter name?
body: <p>I have to implement an MVC action that is invoked like this:</p>
  
  <pre><code>http://address/Controller/MyAction?resName=name
  </code></pre>
  
  <p>and it's called by a third party that is hardcoded to pass <code>resName</code>. So the naive way is to have an action like this:</p>
  
  <pre><code>ActionResult MyAction( String resName )
  {
  </code></pre>
  
  <p>but I think that having a parameter called <code>resName</code> is uncool and I'd prefer to have it name <code>resourceName</code>. If I just rename the parameter MVC parameter mapping no longer works and I always have <code>resourceName</code> set to <code>null</code> when my action is invoked.</p>
  
  <p>I tried <code>BindAttribute</code> like this:</p>
  
  <pre><code>ActionResult MyAction( [Bind(Include="resName")] String resourceName )
  </code></pre>
  
  <p>but <code>resourceName</code> is still <code>null</code> every time my action is invoked.</p>
  
  <p>How do I remap my parameter name?</p>