@html pass id view to controller 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 })