title: How to add link parameter to asp tag helpers in ASP.NET Core MVC
body: <p>I have a lot of experience with <em>ASP.NET MVC 1-5</em>. Now I learn <em>ASP.NET Core MVC</em> and have to pass a parameter to link in page. For example I have the following <em>Action</em></p>
  
  <pre><code> [HttpGet]
   public ActionResult GetProduct(string id)
   {
        ViewBag.CaseId = id;
        return View();
   }
  </code></pre>
  
  <p>How can I implement the link for this action using tag helpers?</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a asp-controller="Product" asp-action="GetProduct"&gt;ProductName&lt;/a&gt;
  </code></pre>