private void ReloadOrder(OrderShippingStatus previousShippingStatus, bool SendEmail = true) { CurrentOrder.EvaluateCurrentShippingStatus(); HccApp.OrderServices.Orders.Update(CurrentOrder); var context = new OrderTaskContext { Order = CurrentOrder, UserId = CurrentOrder.UserID }; context.Inputs.Add("hcc", "PreviousShippingStatus", previousShippingStatus.ToString()); Workflow.RunByName(context, WorkflowNames.ShippingChanged); LoadOrder(); }