using AutomationDAL.Query.Calendar; using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; namespace AutomationDAL.CustomCode.Calendar; public class CalendarCheckDAL : ICalendarCheckDAL { private readonly IQueryExecutor _qe; public CalendarCheckDAL(IQueryExecutor qe) => _qe = qe; public async Task IsHoliday(int calendarId, DateTime date, LoginDTO login, CancellationToken ct) => await _qe.ExecuteScalarAsync(login, CalendarCheckQB.IS_HOLIDAY, new { CalendarId = calendarId, CheckDate = date.Date }, cancellationToken: ct).ConfigureAwait(false); }