title: MVC Controller Action Parameter is null
body: <p>I have Controller name: District and Action name: Incharges But I want the URL to be like this (action name with some paremeter) </p>
  
  <p>www.example.com/district/incharges/aaa </p>
  
  <p>www.example.com/district/incharges/bbb</p>
  
  <p>www.example.com/district/incharges/ccc</p>
  
  <p>But, while debugging teamName always return as NULL in the action parameter. </p>
  
  <p><strong>Routing</strong></p>
  
  <pre><code>routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
              );
  
              routes.MapRoute(
              "DistrictDetails",
              "District/Incharges/{teamName}",
              new { controller = "District", action = "Incharges" }
              ); 
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <p>But, while debugging teamName always return as NULL in the action parameter. </p>
  
  <pre><code>public class DistrictController : Controller
      {     
  
  
          public ActionResult Incharges(string teamName)
          {
              InchargePresentationVM INPVM = new InchargePresentationVM();
              INPVM.InitializePath(teamName, string.Empty);
              return View("", INPVM);
          }
  }
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>@{
      ViewBag.Title = "Index";
  }
  
  &lt;h2&gt;Index About&lt;/h2&gt;
  </code></pre>