/// <inheritdoc /> public async Task <TimeEntry> BookAsync(int id, TimeBookingUpdate value, CancellationToken token = default(CancellationToken)) { if (value == null) { throw new ArgumentNullException(nameof(value)); } return(await PostAsync <TimeEntry, TimeLogBookRequest>(new Uri($"time_logs/{id}/book.json", UriKind.Relative), new TimeLogBookRequest { Values = value }, token).ConfigureAwait(false)); }
/// <inheritdoc /> public async Task UpdateAsync(int id, TimeBookingUpdate values, CancellationToken token = default(CancellationToken)) { if (values == null) { throw new ArgumentNullException(nameof(values)); } await UpdateAsync(new Uri($"time_bookings/{id}.json", UriKind.Relative), new TimeBookingUpdateRequest { Values = values }, token).ConfigureAwait(false); }