C#C
C#3y ago
Henriquee

❔ Razor MVC

Hello, how do I pass a function that is in my controller to a button?
I tried in the following way:
<a asp-route-Id=@Model.Id
asp-action="QualificationEpaeDelete">
<i class="fa fa-trash"></i>
</a>

but it doesn't work, it takes me to a page with a 405 error
Was this page helpful?