how to send id from view to controller in mvc 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 })