Sample:
I have two classes
X and Y:X
I have two controller
XController and YController:XController
public class XController:Controller
{
public virtual PartialViewResult Detail(X model)
{
}
}
But I could not override Detail method because of different signature.
I have RenderAction(p=>p.Detail(y)) code in 7 places in other views. When I override Detail method in YController everything must be ok.
Do I have to write CustomControllerResolver?
Display template not used for interface
Solution above is not enough for me. Because I dont want to change anything else. Only I override Detail Action on YController.
I can make it with a little DRY. How can I call View from another area in Action ? Like
return View("AnotherArea.Detail",model);