Interface IReportService
Regulation report service
Inherited Members
Namespace: PayrollEngine.Client.Service
Assembly: PayrollEngine.Client.Core.dll
Syntax
public interface IReportService : ICrudService<IReport, RegulationServiceContext, Query>, ICreateService<IReport, RegulationServiceContext, Query>, IReadService<IReport, RegulationServiceContext, Query>
Methods
ExecuteReportAsync(RegulationServiceContext, int, ReportRequest)
Execute a report
Declaration
Task<ReportResponse> ExecuteReportAsync(RegulationServiceContext context, int reportId, ReportRequest request)
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| int | reportId | The id of the report |
| ReportRequest | request | The report execute request |
Returns
| Type | Description |
|---|---|
| Task<ReportResponse> | The report response including the report data |
GetAsync<T>(RegulationServiceContext, string)
Get report by name
Declaration
Task<T> GetAsync<T>(RegulationServiceContext context, string name) where T : class, IReport
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| string | name | The payroll name |
Returns
| Type | Description |
|---|---|
| Task<T> | The payroll, null if missing |
Type Parameters
| Name | Description |
|---|---|
| T |
RebuildAsync(RegulationServiceContext, int)
Rebuild the report
Declaration
Task RebuildAsync(RegulationServiceContext context, int reportId)
Parameters
| Type | Name | Description |
|---|---|---|
| RegulationServiceContext | context | The service context |
| int | reportId | The report id |
Returns
| Type | Description |
|---|---|
| Task |