/// <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)); }
/// <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)); }
/// <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)); }