Ejemplo n.º 1
0
 public static Task UpdateTimeslipAsync(this FreeAgentClient client, Timeslip timeslip)
 {
     return(client.UpdateOrDeleteAsync(timeslip, (c, id) => c.UpdateTimeslip(client.Configuration.CurrentHeader, id, timeslip.Wrap())));
 }
Ejemplo n.º 2
0
 public static Task <Timeslip> CreateTimeslipAsync(this FreeAgentClient client, Timeslip timeslip)
 {
     return(client.GetOrCreateAsync(c => c.CreateTimeslips(client.Configuration.CurrentHeader, timeslip.Wrap()), r => r.Timeslip));
 }