Let\'s say I have a class
public class ItemController:Controller { public ActionResult Login(int id) { return View(\"Hi\", id); } }
With MVC5 i have done it like this and it is 100% working code....
@Html.ActionLink(department.Name, "Index", "Employee", new { departmentId = department.DepartmentID }, null)
You guys can get an idea from this...