Interface ILookupSetService
Payroll lookup set service
Inherited Members
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface ILookupSetService : ICreateService<ILookupSet, RegulationServiceContext, Query>, IReadService<ILookupSet, RegulationServiceContext, Query>
Methods
CreateAsync<T>(RegulationServiceContext, IEnumerable<T>)
Create multiple lookup sets
Declaration
Task CreateAsync<T>(RegulationServiceContext context, IEnumerable<T> lookupSets) where T : class, ILookupSet
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| IEnumerable<T> | lookupSets | The lookup sets |
Returns
| Type | Description |
|---|---|
| Task | New created lookup |
Type Parameters
| Name | Description |
|---|---|
| T |
GetAsync<T>(RegulationServiceContext, string)
Get lookup set by name
Declaration
Task<T> GetAsync<T>(RegulationServiceContext context, string name) where T : class, ILookupSet
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| string | name | The lookup name |
Returns
| Type | Description |
|---|---|
| Task<T> | The lookup set, null if missing |
Type Parameters
| Name | Description |
|---|---|
| T |