pass id to controller asp net core 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 })