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