Beispiel #1
0
 public static async Task <TimeEntry> CopyTimeEntry(HarvestApi.HarvestClient client, TimeEntry entryToCopy, decimal?hour, string notes = null)
 {
     return(await client.CreateTimeEntry(
                entryToCopy.Project.Id,
                entryToCopy.Task.Id,
                hour.HasValue?hour.Value : entryToCopy.Hours,
                notes != null?notes : entryToCopy.Notes));
 }