@model WebApplication6.Models.TenantsSale @{ ViewData["Title"] = "TenantSalesIndex"; Layout = "~/Views/Shared/_Layout.cshtml"; }

set the route parameter via the page model


Link A

set the route parameter via the code block


@{ var users_pid = 1002; var sales_type = "TypeB"; } Link B

set the route parameter via the JS


@section Scripts { @{await Html.RenderPartialAsync("_ValidationScriptsPartial");} }