using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using IceImportDAL.Query.IceMapValidationRule; namespace IceImportDAL.CustomCode.IceMapValidationRule; public class IceMapValidationRuleDAL : IIceMapValidationRuleDAL { private readonly IQueryExecutor _qe; public IceMapValidationRuleDAL(IQueryExecutor qe) => _qe = qe; public async Task> GetEnabledValidatorKeysAsync(int iceMapId, LoginDTO login, CancellationToken ct) { var keys = await _qe.QueryAsync( login, IceMapValidationRuleQB.GET_ENABLED_VALIDATOR_KEYS, new { IceMapId = iceMapId }, cancellationToken: ct).ConfigureAwait(false); return keys.ToList(); } }