How to I setup a route of the url /customer/export/billing
to the controller Customer.ExportBilling()
?
When I try this:
routes.MapRoute(
"exportCustomerBilling", "customer/export/billing", new { controller = "Customer", action = "ExportBilling" });
I get a 404, the controller method is not invoked.
Using <%= Html.RouteLink("Export customers for billing", "exportCustomerBilling", null) %>
returns the correct link, clicking on it returns a 404.