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