I want to pass an id like a string to my action method , I am doing like this
<li>@Html.ActionLink("Nokia Lumia Series", "Mobiles", "Products", new { id = "Lumia" })
and here is my action method
public ActionResult Mobiles(string name)
{
return View();
}
but it is not going on that action and this url is shown in browser tab
http://mymobiles.com/Home/Mobiles?Length=8
What I am doing wrong here??