using System.Threading;
using System.Threading.Tasks;
using GB5Shared.DTO.Framework.Login;
namespace TMSDAL.CustomCode.Promotion
{
/// Resolves MTRAININGDOMAIN.TrainingDomainId <-> DomainCode — the one real
/// cross-reference on TrainingProgramme's own parent row. MTRAININGDOMAIN is TenantId-scoped
/// (every existing query on it filters by TENANTID), so both lookups are scoped to the
/// caller's own login.ClientId, same as every other query against this table.
public interface ITrainingDomainCodeLookupDAL
{
Task GetDomainCodeById(int trainingDomainId, LoginDTO login, CancellationToken ct);
Task GetDomainIdByCode(string domainCode, LoginDTO login, CancellationToken ct);
}
}