pass id from views form to controller in asp.net 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 })