why defined extension method with UrlHelper don't added in Url.EXTENSIONMETHOD when i want to use it in controller! but i have access to it in view?
public static string Home(this UrlHelper helper)
{
return helper.RouteUrl("ABC", new { controller = "ABC", Action = "Default" });
}
i haven't access:
public ActionResult Default()
{
return Redirect(Url.Home());
}
i have access in view:
<a href="<%=Url.Home() %>" title="Hello">Hello</a>