As a simple example, say I have an eCommerce application. An order is submitted and various notifications emails are sent (to the person ordering, to the administrator, etc).
public ActionResult SubmitOrder()
{
SubmitOrder();
SendNotifications();
Return View("OrderSubmitted");
}
I don't want the user to wait while the SendNotifications function is executing. Essentially, I want it to behave as if I called it using Ajax from the view.
How would I accomplish this?