Asp.Net configure routes for multiple mvc projects

0

So that I can understand how this architecture of multiple MVC projects in a Solution works.

How do you link (link) a project to another within the same solution?

Forexample,IwouldlikethatintheHomeManagementViewIgetalinktoViewHomeOrdinance.

I've been researching more and I did not find many content and the ones I found were very vague. If you can leave an example of route configuration and others, thank you.

    
asked by anonymous 06.08.2018 / 21:38

1 answer

0

Routes you use when working with the MVC Areas, ie {url} / {area} / {controller} / {view}. In this case you have more than one MVC project and each project can be an application or a subapplication in IIS. For one application to access another, you can configure the local iis to run the applications independently, for example:

  • Management - local.management.com
  • Portaria - local.portaria.com

For one application to access the other you will do this pointing through links. In the application gateway you will have links pointing to local.management.com and vice versa. This solution may lead to an authentication problem. If you authenticate yourself in the management application and try to access some page of the gateway application that requires authentication you will have an access denied. This problem can be solved through solutions such as identity servers (eg Identity Server) or through machine key configuration in IIS. Assess whether this separation is really necessary as it can increase the complexity of your system. If you're having trouble posting a fix and another one comes up, consider using unit testing and integrating integration with an automated build process.

    
08.08.2018 / 19:23