Interface IRegulationService
Payroll regulation service
Inherited Members
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IRegulationService : ICrudService<IRegulation, TenantServiceContext, Query>, ICreateService<IRegulation, TenantServiceContext, Query>, IReadService<IRegulation, TenantServiceContext, Query>
Methods
GetAsync<T>(TenantServiceContext, string)
Get regulation by name
Declaration
Task<T> GetAsync<T>(TenantServiceContext context, string name) where T : class, IRegulation
Parameters
| Type | Name | Description |
|---|---|---|
| TenantServiceContext | context | The service context |
| string | name | The regulation name |
Returns
| Type | Description |
|---|---|
| Task<T> | The regulation, null if missing |
Type Parameters
| Name | Description |
|---|---|
| T |
GetCaseOfCaseFieldAsync(TenantServiceContext, string)
Get case name by case field
Declaration
Task<string> GetCaseOfCaseFieldAsync(TenantServiceContext context, string caseFieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| TenantServiceContext | context | The service context |
| string | caseFieldName | The case field name |
Returns
| Type | Description |
|---|---|
| Task<string> | The case name |