Interface IWageTypeService
Payroll wage type service
Inherited Members
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IWageTypeService : ICrudService<IWageType, RegulationServiceContext, Query>, ICreateService<IWageType, RegulationServiceContext, Query>, IReadService<IWageType, RegulationServiceContext, Query>
Methods
GetAsync<T>(RegulationServiceContext, decimal, CultureInfo)
Get wage type by number
Declaration
Task<T> GetAsync<T>(RegulationServiceContext context, decimal wageTypeNumber, CultureInfo culture) where T : class, IWageType
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| decimal | wageTypeNumber | The wage type number |
| CultureInfo | culture | The wage type number culture |
Returns
| Type | Description |
|---|---|
| Task<T> | The wage type, null if missing |
Type Parameters
| Name | Description |
|---|---|
| T |
GetAsync<T>(RegulationServiceContext, string)
Get wage type by name
Declaration
Task<T> GetAsync<T>(RegulationServiceContext context, string name) where T : class, IWageType
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| string | name | The wage type name |
Returns
| Type | Description |
|---|---|
| Task<T> | The wage type, null if missing |
Type Parameters
| Name | Description |
|---|---|
| T |
RebuildAsync(RegulationServiceContext, int)
Rebuild the wge type
Declaration
Task RebuildAsync(RegulationServiceContext context, int wageTypeId)
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| int | wageTypeId | The wage type id |
Returns
| Type | Description |
|---|---|
| Task |