So I have a something like this in my cshmtl:
<div>
<a href="/cars"></a>
</div>
<div>
<a href="/bikes"></a>
</div>
So it goes to cars controller and hits the function below:
[HttpGet]
[Route("cars")]
[Route("bikes")]
public ActionResult Index()
{
//here I want to set up if else depending on if cars got called or bikes
return View();
}
In the index function, I wanna know through some if else which route got called. Maybe using view bag or something?