public static bool ProcessShippedProductOrder(ref List <string> log, NameValueCollection fields, bool dryRun = false) { var automation = new Automation(dryRun); try { log.Add("starting complete order"); var result = automation.CompleteOrder(fields["Order ID"], fields["Shipping Cost"]); log = automation.Log; return(result); } catch (Exception e) { log = automation.Log; log.Add("exception occurred"); log.Add(e.Message); log.Add(e.Source); log.Add(e.InnerException?.Message); log.Add(e.InnerException?.StackTrace); } return(false); }
public void ShipOrder() { var test = new Automation(); test.CompleteOrder("1772497744", "0.00"); }