my scenarios is that how to change name dynamically in routing
like
otc/productname
food/productname
my code is
[Route("products/{id?}")]
public ActionResult About(string id)
{
ViewBag.Message = "Your application description page.";
return View("About");
}
it work but "product" is static i want also change name