Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

A New Code Structure

$
0
0

I don't want to argue here again that the default folder structure of MVC sucks. As I know for sure it sucks, don't ask me why.

I tried to use the following structure, it works well. What do you guys think?

No Controllers Folder, No ViewModels Folder.

Views/Module1

Views/Module1/Code

Views/Module2

Views/Module2/Code

Under Module1, we have views. Under Code, we have Controllers, ViewModels.

Don't see any problem so far, wondering why the hell MS didn't do it in the first place.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>