public async Task LogWork(Worklog worklog) { if (worklog.IsAtLeast(TimeSpan.FromMinutes(1))) { RestRequest restRequest = CreateRequest("issue/" + worklog.Issue.Key + "/worklog", Method.POST); var worklogJson = new { started = worklog.Start, timeSpentSeconds = worklog.DurationInSeconds }; restRequest.AddJsonBody(worklogJson); IRestResponse response = await _restClient.ExecuteTaskAsync(restRequest); response.EnsureSuccessStatusCode(); } }