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