title: Is it possible to pass an empty string to an action method with a routed URL segment rather than a query string?
body: <p>I have a controller class <code>Movie</code>. One of its action method is given as follows:</p>
  
  <pre><code>    public string ActionMethod(string id)
      {
  
          if (id == null)
          {
  
              return "null";
          }
  
          if (id == string.Empty)
          {
  
              return "empty";
          }
  
          return "neither null nor empaty";
      }
  </code></pre>
  
  <p>Is it possible to pass an empty string to an action method with a routed URL segment rather than a query string?</p>
  
  <p>Note that <code>http://localhost:21068/Movies/ActionMethod?id=</code> can do that but it uses a query string. In addition, it is not allowed to modify the action method. :-)</p>