There are 2 Home and Agree controllers in each of them, one Index method. In the view from the Home controller there is such a code.
@Html.ActionLink("Click", "Index", "Agree") Which should reference the Index method from the Agree controller. However, when loading this view, this link appears
<a href="/Agree">Click</a> Why is this coming out? Both methods without parameters. Default route
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }