In my current project I have quite a lot of customer things going on, so I wanted to organise it accordingly.
I wanted my controllers to look like the following:
/Controllers/Customer/CustomerController.cs
/Controllers/Customer/CustomerResourceController.cs
/Controllers/Customer/CustomerDataFieldController.cs
And my views to look like this:
/Views/Customer/Customer/Index.cshtml
/Views/Customer/CustomerResource/Index.cshtml
/Views/Customer/CustomerDataField/Index.cshtml
I'm not sure to map this, I tried something amongst the lines of this:
routes.MapRoute(
"customer_routing",
"Customer/{controller}",
new { controller = "Customer", action = "Index" } // Parameter defaults
);
Which gets my controllers correctly (I think), but how do I map my views correctly?
Thanks, Thomas