RenderMvcController could also be used, but you don't need to use that anymore. With IRenderMvcController you can use any controller you want. In this case I choose a SurfaceController because Umbraco uses those for posting. So now you can use 1 controller for route hijacking and posting back if you want. I just want all controllers to inherit from the same base controller for consistency.
Why does the defaultcontroller inherit from surfacecontroller
Hi Jeroen, Jeavon,
I was just going to the code for the defaultcontroller which inherits from SurfaceRenderMvcController
Why does inherit from SurfaceController and implement the interface IRenderMvcController instead of inheriting from RenderMvcContoller.
Am I missing something obvious here ?
Dave
Hello,
RenderMvcController could also be used, but you don't need to use that anymore. With IRenderMvcController you can use any controller you want. In this case I choose a SurfaceController because Umbraco uses those for posting. So now you can use 1 controller for route hijacking and posting back if you want. I just want all controllers to inherit from the same base controller for consistency.
Jeroen
is working on a reply...