How can I inherit an ASP.NET MVC controller and change only the view?

Posted by AlexWalker on Stack Overflow See other posts from Stack Overflow or by AlexWalker
Published on 2009-10-14T15:28:05Z Indexed on 2010/04/09 17:33 UTC
Read the original article Hit count: 209

Filed under:

I have a controller that's inheriting from a base controller, and I'm wondering how I can utilize all of the logic from the base controller, but return a different view than the base controller uses.

The base controller populates a model object and passes that model object to its view, but I'm not sure how I can access that model object in the child controller so that I can pass it to the child controller's view.

© Stack Overflow or respective owner

Related posts about asp.net-mvc