OrderNoteAdd - New Controller / Map Route

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
We set up a new customer role for our call center users. When a customer in that role is logged in and they add an order note, we want to be notified via e-mail of that information.

I created a new controller _OrderNoteController.cs and added our logic to send the email.  My problem is getting the route set up correctly. I am completely new to the way that works.

The existing route for adding an order note is "/Admin/Order/OrderNoteAdd" - I want that to stay the same so that I do not have to modify the order edit view (Edit.cshtml), but I want that route to go to my new controller that has an action named OrderNoteAdd.

I assume I have to create a new class that implements the IRouteProvider interface. I'm just not sure what the routes.MapRoute() should look like.

I'm not sure if that is clear, but I do solicit your help.
12 years ago
Changed the content of the post. Bump.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.