Reputation: 363
I need to develop a web application of hotel. Some hotels have lodge system as well. How can I make lodge as pluggable module. I went through many links and found that area might be a good solution but I couldn't find out the best solution. The foremost thing I need to check whether the lodge module is present or not. If lodge is present then in main project I need to add a button to go to lodge system. How is that possible? If so then please share me a tutorial or a link.
Upvotes: -1
Views: 722
Reputation: 12253
Look at MVC Razor Precompiled Views to keep views and code in another project. Use dependency injection to share common infrastructure code.
This github repo should contain what you need https://github.com/RazorGenerator/RazorGenerator
Potentially you can make Lodge a night package and share it between projects that way. Alternatively look at making code base multi tenated and make parts of application customizable per customer
Upvotes: 1