Controller
public class TestController{
[Route("TestIndex")]
public ActionResult Index(){
}
}
html
<a href="@Url.Action("Index","TestController")">Go to test</a>
I have above code!!
On Go to test click I want to redirect to Index action of Testcontroller for that I used below code
href="@Url.Action("Index","TestController")"
but I think as route attribute is used there that's why it is not redirecting to that action
Thank you in advance