public IEnumerable <string> Get() { var nmiService = new NMIService(); var responseMessage = string.Empty; Action <string> success = response => { responseMessage = $"Sucess Response : { response }"; }; Action <string> failure = response => { responseMessage = $"Failure Response : { response }"; }; var customer = new CustomerVaultServiceModel() { customer_vault_id = "123123123", ccnumber = "6011111111111117", ccexp = "1025", //cvv = "601", first_name = "Harsh", last_name = "Three", address1 = "153 Peaceful Lane", address2 = "Near XYZ", city = "Garfield Heights", state = "OH", zip = "44125", country = "US", }; nmiService.CreateCustomerVault(customer, success, failure); return(new string[] { responseMessage }); }
public void UpdateCustomerVault(CustomerVaultServiceModel customer, Action <string> success, Action <string> failure) { customer.customer_vault = CustomerVaultType.UpdateCustomer.ToDescription(); ExecuteAction(customer, success, failure); }