When you create a new ASP.NET MVC application with Visual Studio, it automatically adds several fi les and directories to the project. ASP.NET MVC projects created with the Internet application template have eight top-level directories.
DIRECTORY | PURPOSE |
---|---|
/Controllers | Where you put Controller classes that handle URL requests |
/Models | Where you put classes that represent and manipulate data and business objects |
/Models | Where you put UI template files that are responsible for rendering output, such as HTML |
/Scripts | Where you put JavaScript library files and scripts (.js) |
/Images | Where you put images used in your site |
/Content | Where you put CSS and other site content, other than scripts and images |
/Filters | Where you put filter code. Filters are an advanced feature. |
/App_Data | Where you store data files you want to read/write |
/App_Start | Where you put configuration code for features like Routing, Bundling, and Web API |