using EAIAdminDAL.Query; using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using System; using System.Threading; using System.Threading.Tasks; namespace EAIAdminDAL.CustomCode { public class EAIReportLookupDAL : IEAIReportLookupDAL { private readonly IQueryExecutor _qe; public EAIReportLookupDAL(IQueryExecutor qe) { _qe = qe ?? throw new ArgumentNullException(nameof(qe)); } public async Task GetReportCodeAsync(int reportId, LoginDTO login, CancellationToken ct = default) { return await _qe.QuerySingleAsync( login, EAIReportLookupQB.GET_REPORT_CODE, new { ReportId = reportId }, cancellationToken: ct).ConfigureAwait(false); } } }