title: passing string to controller/action from view
body: <p>I am trying to lower the role of a user by clicking a link in my view.</p>
  
  <p>When I click the link, it doesn't go to the action, but it just gives 404 error and links the resource that is not found with the string I am trying to pass to the action( referred to as "stringparameter")</p>
  
  <p>In this case, the link is /Admin/Disable/stringparameter</p>
  
  <p>I think I am not using the correct overload, so could someone help me out?
  Thanks</p>
  
  <p>This is the action in the AdminController</p>
  
  <pre><code> [HttpPost]
      public ActionResult Disable(string id)
      {
          Role rol = new UserRepository().GetRole("Disabled");             
          new UserRepository().UpdateUser(id,rol.RoleId);
          return RedirectToAction("Users");
      }
  </code></pre>
  
  <p>this is the viewmodel</p>
  
  <pre><code>public class UserSuperUserPM
  {
      public UserClass User { get; set; }
      public List&lt;UserClass&gt; Users { get; set; }
  
      public UserClass SuperUser { get; set; }
      public List&lt;UserClass&gt; SuperUsers { get; set; }
  
      public UserClass Disabled { get; set; }
      public List&lt;UserClass&gt; Disableds { get; set; }
  
      public UserClass Inactive { get; set; }
      public List&lt;UserClass&gt; Inactives { get; set; }
  }
  </code></pre>
  
  <p>this is the userclass</p>
  
  <pre><code>public class UserClass
  {
      public string UserId { get; set; }
      public string Username { get; set; }
      public string Role { get; set; }
  }
  </code></pre>
  
  <p>and this is the view(1 of the 4 similar tables in the view)</p>
  
  <pre><code>@foreach (var item in Model.Users)
  {
      &lt;tr&gt;
          &lt;td class="col-md-4"&gt;
              @Html.DisplayFor(modelItem =&gt; item.Username, Model.Users)
          &lt;/td&gt;
          &lt;td class="col-md-4"&gt;
              @Html.DisplayFor(modelItem =&gt; item.Role, Model.Users)
          &lt;/td&gt;
          &lt;td calss="col-md-4"&gt;
  --------Commented attempted links(none of them work correct)
              @*@Html.ActionLink("Disable", "Disable", new { Controller = "Admin", action = "Disable", id = item.UserId })*@
              @*&lt;a href="~/Controllers/AdminController/Disable?id=@item.UserId"&gt;Disable&lt;/a&gt;*@
              @*@Html.ActionLink("Disable","Admin", new { id = item.UserId },null)*@
              @*@Html.ActionLink("Disable", "Disable","Admin", item.UserId)*@
  
  -------original attempted link
              @Html.ActionLink("Disable", "Disable", new { id = item.UserId})
  
  
  
  
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  </code></pre>
  
  <p></p>