Baris Tabel yang Dapat Diklik Asp.net Core

@foreach (var user in Model.Users)
{
    <tr onclick="location.href = '@(Url.Action("ShowProfile", "Users", new { userId = user.UserId }))'">
    //rest of your markup for that table row
    </tr>
}
Curious Crab