using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using CRMSalesDAL.DTO.LeadAllocation; using CRMSalesDAL.Query.LeadAllocation; namespace CRMSalesDAL.CustomCode.LeadAllocation; public class LeadAllocationDAL : ILeadAllocationDAL { private readonly IQueryExecutor _QueryExecutor; public LeadAllocationDAL(IQueryExecutor queryExecutor) { _QueryExecutor = queryExecutor; } public async Task> GetRepCapacities(LoginDTO loginDTO, CancellationToken ct) { try { return await _QueryExecutor .QueryAsync(loginDTO, LeadAllocationQB.GET_REP_CAPACITY, null!, cancellationToken: ct) .ConfigureAwait(false); } catch { throw; } } }