MVC 3 and razor, How to build a structure from _layout to _layout?

I am currently creating a large project containing 5 different sites. All these sites have the same "frame" (_layout.cshtml in views / general in the root).

I created a structure in which each site is an area, and this will work perfectly for our needs. My question is: how can I work with one _Layout.cshtml (login bar, footer, background), which is the same for all sites, and then one _Layout.cshtml for each site, which, in turn, is called through a partial view (for example index.cshtml), which in turn is called through the controller?

+3
source share
1 answer

, Razor? , .

, , .

+5

Source: https://habr.com/ru/post/1796266/


All Articles