Share MVC Controller between areas
MVC’s separation is fantastic but some times you have areas that need to use a common controller. This is a question I see often asked online. If you have a common model that is used in different areas like a user you can just inherit from the original:
namespace MainSite.Areas.AreaName{
public class UserController : MainSite.Controllers.UserController
{
}
}
nice and easy solution, thanks
So simple. Thanks 🙂