A vs A with helpers tag for controller?

C#
<a asp-controller="Race" asp-action="Details" asp-route-id="@race.Id" class="btn btn-sm btn-outline-secondary">View</a>
<a href="race/details/@race.Id" class="btn btn-sm btn-outline-secondary">View</a>
C#
<a asp-controller="Race" asp-action="Details" asp-route-id="@race.Id" class="btn btn-sm btn-outline-secondary">View</a>
<a href="race/details/@race.Id" class="btn btn-sm btn-outline-secondary">View</a>
What is the acceptable practice?
2 Replies
Angius
Angius2y ago
helper would be recommended
Candyroll93
Candyroll93OP2y ago
tym
Want results from more Discord servers?
Add your server