title: MVC 4 Html.ActionLink is not passing parameters to controller
body: <p>I am somewhat new to MVC and trying to rewrite login page to MVC. 
  I can not pass parameters to my ActionResult in controller, the parameter coming in is null. </p>
  
  <p>here is View</p>
  
  <pre><code> &lt;div class="form-group"&gt;
  &lt;div class="row"&gt;
  @Html.TextBoxFor(model =&gt; model.UserName)
  &lt;/div&gt;
   &lt;/div&gt;
  
  &lt;button class="btn btn-primary"&gt;
  @Html.ActionLink("GO!", "AppList", "LogIn", new { @userName = Model.UserName}, null)
  &lt;/button&gt;
  </code></pre>
  
  <p>I am trying to pass user name and password into my controller.</p>
  
  <pre><code>  public ActionResult AppList(string userName)
          {
              return View();
          }
  </code></pre>
  
  <p>I looked  up other post and i sure i am using proper overload for this. </p>
  
  <p>Here I added route config </p>
  
  <pre><code>  routes.MapRoute(
                  name: "LogIn",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "LogIn", action = "Index", id = UrlParameter.Optional }
              );
  </code></pre>
  
  <p>this is my actionResult that is loading login page </p>
  
  <pre><code>public ActionResult LogIn(string userName, string password)
          {
              ViewBag.LogInButton = "Log In";
  
              return View(new Login());
          }
  </code></pre>
  
  <p>and view i assign a model </p>
  
  <pre><code>@model LogInPortal.Controllers.LogInController.Login
  </code></pre>