예제 #1
0
 /// <summary>
 /// Update timesheet line
 /// </summary>
 /// <remarks>
 /// Update an individual timesheet line
 /// </remarks>
 public MyIndividualTimesheetLineModel UpdateTimesheetLine(int businessId, int timesheetLineId, MyIndividualTimesheetLineModel request)
 {
     return(ApiRequest <MyIndividualTimesheetLineModel, MyIndividualTimesheetLineModel>($"/business/{businessId}/timesheet/{timesheetLineId}", request, Method.PUT));
 }
예제 #2
0
 /// <summary>
 /// Update timesheet line
 /// </summary>
 /// <remarks>
 /// Update an individual timesheet line
 /// </remarks>
 public Task <MyIndividualTimesheetLineModel> UpdateTimesheetLineAsync(int businessId, int timesheetLineId, MyIndividualTimesheetLineModel request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <MyIndividualTimesheetLineModel, MyIndividualTimesheetLineModel>($"/business/{businessId}/timesheet/{timesheetLineId}", request, Method.PUT, cancellationToken));
 }
예제 #3
0
 /// <summary>
 /// Create timesheet line
 /// </summary>
 /// <remarks>
 /// Create an individual timesheet line
 /// </remarks>
 public MyIndividualTimesheetLineModel CreateTimesheetLine(int businessId, MyIndividualTimesheetLineModel request)
 {
     return(ApiRequest <MyIndividualTimesheetLineModel, MyIndividualTimesheetLineModel>($"/business/{businessId}/timesheet", request, Method.POST));
 }