using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using PERMDAL.DTOs; using PERMDAL.Interfaces; using PERMDAL.QueryBuilders; namespace PERMDAL.Implementations; public class TrendDAL : ITrendDAL { private readonly IQueryExecutor _qe; public TrendDAL(IQueryExecutor queryExecutor) => _qe = queryExecutor; public async Task> GetTrendPointsAsync( int employeeId, int lastNCycles, LoginDTO login, CancellationToken ct) => await _qe.QueryAsync(login, TrendQB.GET_TREND, new { EmployeeId = employeeId, LastNCycles = lastNCycles, TenantId = login.ClientId }, cancellationToken: ct) .ConfigureAwait(false) ?? Enumerable.Empty(); }