Interface IEmployeeService
Payroll employee service
Inherited Members
ICrudService<IEmployee, TenantServiceContext, DivisionQuery>.UpdateAsync<T>(TenantServiceContext, T)
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IEmployeeService : ICrudService<IEmployee, TenantServiceContext, DivisionQuery>, ICreateService<IEmployee, TenantServiceContext, DivisionQuery>, IReadService<IEmployee, TenantServiceContext, DivisionQuery>, IAttributeService<TenantServiceContext>
Methods
CreateEmployeesBulkAsync<T>(TenantServiceContext, IEnumerable<T>)
Query items and count of objects
Declaration
Task<int> CreateEmployeesBulkAsync<T>(TenantServiceContext context, IEnumerable<T> employees) where T : class, IEmployee
Parameters
| Type | Name | Description |
|---|---|---|
| TenantServiceContext | context | The service context |
| IEnumerable<T> | employees | The employees to create |
Returns
| Type | Description |
|---|---|
| Task<int> | The number of created employees |
Type Parameters
| Name | Description |
|---|---|
| T |
GetAsync<T>(TenantServiceContext, string)
Get employee by identifier
Declaration
Task<T> GetAsync<T>(TenantServiceContext context, string identifier) where T : class, IEmployee
Parameters
| Type | Name | Description |
|---|---|---|
| TenantServiceContext | context | The service context |
| string | identifier | The employee identifier |
Returns
| Type | Description |
|---|---|
| Task<T> | The employee, null if missing |
Type Parameters
| Name | Description |
|---|---|
| T |