0
I am doing a project in ASP.NET MVC and I came up with this question, The Url.Action in a 'tag' (for example in a navbar) can redirect the page passing the method and controller as parameter. However there are the attributes Asp-controller (define the controller) and Asp-action (define the method) that would bring the same result, this is possible?
<ul class="ulMenu">
<li class="liMenu"><a asp-controller="Home" asp-action="Index">Home</a></li>
<li class="liMenu"><a href='@Url.Action("Index", "Home")'>Home</a></li>
</ul>