I have a solution having two MVC Web Projects.
In main project, AdminController is works as expected(When I hit Admin/Action it looks for view in main project and work accordingly).
In second project I have SiteController . When I hit Site/Action it looks for view in main project and as it is not available in main project and throw error.
I want to access second project controller through main project but don't know how to achieve this.
I do not want to use Area functionality in main project. SiteController should be in second project and should be accessible through main project.
You have multiple solutions for this:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.