//update Invoice public async Task <dynamic> UpdateInvoices(Invoice invoice, SecurityToken token) { SecurityToken stoken = await GetSecurityToken(); var client = new PaymentGateway.IeBizServiceClient(); var data = await client.UpdateInvoiceAsync(stoken, invoice, invoice.CustomerId, "", invoice.InvoiceNumber, ""); return(data); }