using GB5Shared.DTO.Framework.Login; using GB5Shared.QueryExecutor; using IceImportDAL.DTO.MenuResolution; using IceImportDAL.Query.MenuResolution; namespace IceImportDAL.CustomCode.MenuResolution; public class MenuResolutionDAL : IMenuResolutionDAL { private readonly IQueryExecutor _qe; public MenuResolutionDAL(IQueryExecutor qe) => _qe = qe; public async Task GetMenuByEntityIdAsync(int entityId, LoginDTO login, CancellationToken ct) { var rows = await _qe.QueryAsync( login, MenuResolutionQB.GET_MENU_BY_ENTITYID, new { EntityId = entityId }, cancellationToken: ct).ConfigureAwait(false); return rows.FirstOrDefault(); } }