As using ActionLink to pass HtmlAttribute method of another controller?

As using ActionLink to pass HtmlAttribute method of another controller?
@Html.ActionLink((string)ViewBag.User.Login, "User","WatchProfile", new { id = ViewBag.UserId}) - so passes the controller Menu, the right way
@Html.ActionLink((string)ViewBag.User.Login, "User","WatchProfile") - transmits as it should, but because of no attribute error
April 3rd 20 at 18:26
1 answer
April 3rd 20 at 18:28
@Html.ActionLink((string)ViewBag.User.Login, "Action","Controller", null, new { id = ViewBag.UserId})

Find more questions by tags ASP.NETC#