Exemplo n.º 1
0
 /// <summary>
 /// Get Shift Periods for Employee
 /// </summary>
 /// <remarks>
 /// Gets the shift periods for the specified employee.
 /// </remarks>
 public Task <List <ShiftPeriodModel> > GetShiftPeriodsForEmployeeAsync(int businessId, int employeeId, GetShiftPeriodsModel model, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employee/{employeeId}/timesheet/shiftperiods", model, Method.POST, cancellationToken));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get Shift Periods
 /// </summary>
 /// <remarks>
 /// Gets all the shift periods for the employment agreement with the specified ID.
 /// </remarks>
 public Task <List <ShiftPeriodModel> > GetShiftPeriodsAsync(int businessId, int id, GetShiftPeriodsModel model, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employmentagreement/{id}/shiftperiods", model, Method.POST, cancellationToken));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Get Shift Periods for Employee
 /// </summary>
 /// <remarks>
 /// Gets the shift periods for the specified employee.
 /// </remarks>
 public List <ShiftPeriodModel> GetShiftPeriodsForEmployee(int businessId, int employeeId, GetShiftPeriodsModel model)
 {
     return(ApiRequest <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employee/{employeeId}/timesheet/shiftperiods", model, Method.POST));
 }
Exemplo n.º 4
0
 /// <summary>
 /// Get Shift Periods
 /// </summary>
 /// <remarks>
 /// Gets all the shift periods for the employment agreement with the specified ID.
 /// </remarks>
 public List <ShiftPeriodModel> GetShiftPeriods(int businessId, int id, GetShiftPeriodsModel model)
 {
     return(ApiRequest <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employmentagreement/{id}/shiftperiods", model, Method.POST));
 }