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.