I am adapting an open source project (NopCommerce). It is great software and supports extensibility with plugins. For one plugin, I would like to add information to the view, to do this, I want to inherit from the controller and override the actions I need to change. So this is my controller:
public class MyController : OldController{
public new ActionResult Product(int productId)
{
}
}
I changed the route from my plugin, but when this action succeeds, I get the following error:
The current request for the Product action for the MyController controller type is ambiguous between the following action methods: System.Web.Mvc.ActionResult Product (Int32) as MyPlugin System.Web.Mvc.ActionResult Product (Int32) as OldController
- ? (ps: override, , OldController)
,