/// <summary> /// Continue the workflow of an order. /// </summary> /// <param name="managerResponse">The managers response to an order.</param> /// <returns></returns> public static Order RunApproveOrder(ManagerResponse managerResponse) { using (var client = new OrderProductServiceReference.ServiceClient()) { return(client.ApproveOrder(managerResponse)); } }
/// <summary> /// Start the workflow for a new order. /// </summary> /// <param name="order">A reference to an Order object.</param> public static void RunSubmitOrder(ref Order order) { using (var client = new OrderProductServiceReference.ServiceClient()) { client.SubmitOrder(ref order); } }