title: Custom Route Doesn't Get The Query String
body: <p>I am trying to do a simple routing as follows:</p>
  <pre><code>http://localhost:PortNo/Exam/2
  </code></pre>
  <p>So in the route config file, I've this:</p>
  <pre><code>routes.MapRoute(
          name: &quot;Exam&quot;,
          url: &quot;Exam/{id}&quot;,
          defaults: new { controller = &quot;Exam&quot;, action = &quot;Index&quot; },
          namespaces: new[] { &quot;App.Web.Controllers&quot; }
  );
  </code></pre>
  <p>In the controller:</p>
  <pre><code> [HttpGet]
   public ActionResult Index(int id)
   {
      return View(GetQuestions(id));
   }
  </code></pre>
  <p>Unfortunately the above routing doesn't get me the query string value but this helps that I don't prefer:</p>
  <pre><code>ttp://localhost:PortNo/Exam/Index/2
  </code></pre>
  <p>Just wasted an hour for this simple thing, anything skipped here? Would appreciate an idea to overcome this.</p>