A
A
Andrey Dyrkov2016-01-30 18:44:03
ASP.NET
Andrey Dyrkov, 2016-01-30 18:44:03

How to merge two asp.net mvc applications?

Created 2 mvc applications: Admin, App.
How can I combine them with each other so that both start up and the routers work for both, and not just for one?
Links add ... does not work. How to share them with each other?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
eRKa, 2016-02-01
@kttotto

For such cases in ASP.net MVC there are areas (Area). This is when in the site, you kind of create another subsite. Right click on the project, add area. A section will be automatically added with its own sections for controllers, models and views. The route will also be added. Usually just admins do in area. The only thing you have to do in the links is to indicate the route, the area. You can create as many such areas as you like by logically dividing the site into different contexts.

D
Dmitry Kovalsky, 2016-01-30
@dmitryKovalskiy

Well, what's the problem? Create in IIS 2 web sites and lay out. What do you understand by "share"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question