using System.Threading;
using System.Threading.Tasks;
using GB5Shared.DTO.Framework.Login;
namespace FrameworkDAL.CustomCode.Promotion
{
/// Resolves MMODULE.ModuleId <-> ModuleCode — module codes are static/shared
/// across every GB5 install (the same modules exist everywhere by design), so this lookup
/// is low-risk compared to tenant-configured entities like Menu/Portlet.
public interface IModuleCodeLookupDAL
{
Task GetModuleCodeById(int moduleId, LoginDTO login, CancellationToken ct);
Task GetModuleIdByCode(string moduleCode, LoginDTO login, CancellationToken ct);
}
}