clickable table row asp.net core code example
Example: clickable table row 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>
}