ASP.NET MVC 2 RC Scopes and Generic Models

As soon as a new area is created using the Visual Studio context menu, there are three folders: Controllers, Models, Views. Is each area supposed to have its own model classes? Or is it acceptable / widely used / useful for all areas to use the same model classes in the root models folder?

My project has a Domain Model and a View Model, so view models are presented in the Models folder.

And yes, several views of several areas seem to somehow share the same View-Models.

+4
source share
1 answer

If your view models are separated by several areas, put them in ~/Models - there are no restrictions on this

+3
source

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


All Articles