using System.Threading; using System.Threading.Tasks; using GB5Shared.DTO.Framework.Login; namespace FrameworkDAL.CustomCode.Promotion { // ============================================================ // IReportCodeLookupDAL — resolves MREPORT.ReportId <-> ReportCode. // // ReportView promotion needs this because a raw REPORTID is never portable // across two separate databases (AutoNumber-assigned IDs mean nothing // outside the database that assigned them) -- ReportCode is the natural // key that travels in the bundle instead, resolved back to a local // ReportId at the destination. // ============================================================ public interface IReportCodeLookupDAL { Task GetReportCodeById(int reportId, LoginDTO login, CancellationToken ct); Task GetReportIdByCode(string reportCode, LoginDTO login, CancellationToken ct); } }