Class EmployeeService
Inheritance
EmployeeService
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class EmployeeService : ServiceBase, IEmployeeService, ICrudService<IEmployee, TenantServiceContext, DivisionQuery>, ICreateService<IEmployee, TenantServiceContext, DivisionQuery>, IReadService<IEmployee, TenantServiceContext, DivisionQuery>, IAttributeService<TenantServiceContext>
Constructors
EmployeeService(PayrollHttpClient)
Declaration
public EmployeeService(PayrollHttpClient httpClient)
Parameters
Methods
CreateAsync<T>(TenantServiceContext, T)
Declaration
public virtual Task<T> CreateAsync<T>(TenantServiceContext context, T employee) where T : class, IEmployee
Parameters
Returns
Type Parameters
CreateEmployeesBulkAsync<T>(TenantServiceContext, IEnumerable<T>)
Declaration
public Task<int> CreateEmployeesBulkAsync<T>(TenantServiceContext context, IEnumerable<T> employees) where T : class, IEmployee
Parameters
Returns
Type Parameters
DeleteAsync(TenantServiceContext, int)
Declaration
public virtual Task DeleteAsync(TenantServiceContext context, int employeeId)
Parameters
Returns
DeleteAttributeAsync(TenantServiceContext, int, string)
Declaration
public virtual Task DeleteAttributeAsync(TenantServiceContext context, int employeeId, string attributeName)
Parameters
Returns
GetAsync<T>(TenantServiceContext, int)
Declaration
public virtual Task<T> GetAsync<T>(TenantServiceContext context, int employeeId) where T : class, IEmployee
Parameters
Returns
Type Parameters
GetAsync<T>(TenantServiceContext, string)
Declaration
public virtual Task<T> GetAsync<T>(TenantServiceContext context, string identifier) where T : class, IEmployee
Parameters
Returns
Type Parameters
GetAttributeAsync(TenantServiceContext, int, string)
Declaration
public virtual Task<string> GetAttributeAsync(TenantServiceContext context, int employeeId, string attributeName)
Parameters
Returns
QueryAsync<T>(TenantServiceContext, DivisionQuery)
Declaration
public virtual Task<List<T>> QueryAsync<T>(TenantServiceContext context, DivisionQuery query = null) where T : class, IEmployee
Parameters
Returns
Type Parameters
QueryCountAsync(TenantServiceContext, DivisionQuery)
Declaration
public virtual Task<long> QueryCountAsync(TenantServiceContext context, DivisionQuery query = null)
Parameters
Returns
QueryResultAsync<T>(TenantServiceContext, DivisionQuery)
Declaration
public virtual Task<QueryResult<T>> QueryResultAsync<T>(TenantServiceContext context, DivisionQuery query = null) where T : class, IEmployee
Parameters
Returns
Type Parameters
SetAttributeAsync(TenantServiceContext, int, string, string)
Declaration
public virtual Task SetAttributeAsync(TenantServiceContext context, int employeeId, string attributeName, string attributeValue)
Parameters
Returns
UpdateAsync<T>(TenantServiceContext, T)
Declaration
public virtual Task UpdateAsync<T>(TenantServiceContext context, T employee) where T : class, IEmployee
Parameters
Returns
Type Parameters
Implements
Extension Methods