Pass id to controller in asp.net mvc using @Html code example
Example: how to pass id from view to controller in asp.net core
@Html.ActionLink("Display File Contents", "DisplayUploadedFileContents", new { id = item.UploadId })
@Html.ActionLink("Display File Contents", "DisplayUploadedFileContents", new { id = item.UploadId })