public Dictionary <string, object> RollBack(Dictionary <string, object> Input) { Dictionary <string, object> Output = new Dictionary <string, object>(); var res = CustomerClient.RollbackCustomerTotalBuy(); Output.Add("CustomerMessage", res.Message); Output.Add("CustomerKey", res.CustomerKey); _logger.LogInformation(res.Message); return(Output); }
public void RollBack() { var res = CustomerClient.RollbackCustomerTotalBuy(); if (Output.ContainsKey("CustomerMessage")) { Output["Output"] = res.Message; } else { Output.Add("CustomerMessage", res.Message); } if (Output.ContainsKey("CustomerKey")) { Output["CustomerKey"] = res.CustomerKey; } else { Output.Add("CustomerKey", res.CustomerKey); } _logger.LogInformation(res.Message); }