public static Task UpdateBillAsync(this FreeAgentClient client, Bill bill) { return(client.UpdateOrDeleteAsync(bill, (c, id) => c.UpdateBill(client.Configuration.CurrentHeader, id, bill.Wrap()))); }
public static Task <Bill> CreateBillAsync(this FreeAgentClient client, Bill bill) { return(client.GetOrCreateAsync(c => c.CreateBill(client.Configuration.CurrentHeader, bill.Wrap()), r => r.Bill)); }