How to Generate Links to Action Method in different Areas in ASP.NET MVC?

The ActionLink helper method has 9+ overloads to generate links based on various scenarios. Generally, the “Action Name” is passed as the 2nd parameter to the ActionLink which points to the current Controller and the specified Action method.

@Html.ActionLink ("Abundant Code", ActionName")

What do we do when the Action method of a different Area needs to be refereed to when generating the link in ASP.NET MVC?

How to Generate Links to Action Method in different Areas in ASP.NET MVC?

In these scenarios, we can pass the reserved field “area” to the ActionLink as specified below.

@Html.ActionLink ("Abundant Code", "ActionName", new {area = "Area Name"})