I have a question in the ASP.Net MVC
application:
Structure
Views
|
+-- Home
| |
| +-- Index.cshtml
| |
| +-- Page.cshtml
|
+-- Users
| |
| +-- Details.cshtml
|
+-- Paginas
| |
| +-- Pagina1.cshtml
| |
| +-- Pagina2.cshtml
|
+-- Shared
|
+-- Layout.cshtml
|
+-- _Partial.cshtml
A normal structure, but the "Pages" folder does not have any controller that makes the association. In this folder I'll put all the pages that are "Html Statics".
That is if I create a new file "Page3.cshtml" and put in this folder, and when I access url {local}\paginas\Pagina3
the contents of this page appear, but when I do this it returns a 404 error.
I just do not want to create .html
files because I use Layout.cshtml
.