Hi!
I have a view folder structure:
- Views
- Admin
- Post
- New
and routing is defined with:
routes.MapRoute(
"Admin", // Route name
"Admin/{controller}/{action}/{id}", // URL with parameters
new { controller = "Admin", action = "Index", id = UrlParameter.Optional }
);
But, for ex: /Admin/Post/New gives 404 error. Because It doesn't go to Admin folder first.
Err: The view 'New' or its master was not found. The following locations were searched: ~/Views/Post/New.aspx ~/Views/Post/New.ascx ~/Views/Shared/New.aspx ~/Views/Shared/New.ascx
How I can define the folder?