Esempio n. 1
0
 /// <summary>
 /// Create Employee Group
 /// </summary>
 /// <remarks>
 /// Creates a new employee group for the business.
 /// </remarks>
 public Task <SgEmployeeGroupModel> CreateEmployeeGroupAsync(int businessId, SgEmployeeGroupModel employeeGroup, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <SgEmployeeGroupModel, SgEmployeeGroupModel>($"/business/{businessId}/employeegroup", employeeGroup, Method.POST, cancellationToken));
 }
Esempio n. 2
0
 /// <summary>
 /// Update Employee Group
 /// </summary>
 /// <remarks>
 /// Updates the specified employee group.
 /// </remarks>
 public SgEmployeeGroupModel UpdateEmployeeGroup(int businessId, int id, SgEmployeeGroupModel employeeGroup)
 {
     return(ApiRequest <SgEmployeeGroupModel, SgEmployeeGroupModel>($"/business/{businessId}/employeegroup/{id}", employeeGroup, Method.PUT));
 }
Esempio n. 3
0
 /// <summary>
 /// Create Employee Group
 /// </summary>
 /// <remarks>
 /// Creates a new employee group for the business.
 /// </remarks>
 public SgEmployeeGroupModel CreateEmployeeGroup(int businessId, SgEmployeeGroupModel employeeGroup)
 {
     return(ApiRequest <SgEmployeeGroupModel, SgEmployeeGroupModel>($"/business/{businessId}/employeegroup", employeeGroup, Method.POST));
 }