I try to rewrite and customize @Html.ActionLink, in one of overloads of this method the parameters are:
@Html.ActionLink
public static MvcHtmlString ActionLink(this
Use this:
string controllerName = (string)htmlHelper.ViewContext.RouteData.GetRequiredString("controller"); string areaName = (string)htmlHelper.ViewContext.RouteData.DataTokens["area"];