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