I've a route like Admin/Vendor
in my MVC application . Without changing this route I need to point this same route to another method say CustomAdmin/CustomVendor
.
I tried attribute routing but no luck . Is there any way to do this. My current code is given below
Original Method:
public class AdminController
{
public ActionResult Vendor()
{
return View();
}
}
Custom Method:
public class CustomAdminController
{
[Route("Admin/Vendor")]
public ActionResult CustomVendor()
{
return View();
}
}