In an ASP.NET MVC5 project, I created a Helper
inside the App_Code
folder, however, when I use the Url.Action()
function on my Helper
the following compile error occurs:
CS0103: The name 'Url' does not exist in the current context
My code:
@helper testeHelper()
{
<a href="@Url.Action("Index", "Home")" >teste</a>
}