title: MVC Action with Optional Parameters -- which is better?
body: <p>Are there any pros/cons of using the following two alternatives in your action signature:</p>
  
  <pre><code>public ActionResult Action(int? x) // get MVC to bind null when no parameter is provided
  {
      if(x.HasValue)
      {
          // do something
      }
  }
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>public ActionResult Action(int? x = null) // C# optional parameter (virtual overload)
  {
      if(x.HasValue)
      {
          // do something
      }
  }
  </code></pre>