using System.Threading;
using System.Threading.Tasks;
using FrameworkDAL.DTO.Promotion;
using GB5Shared.DTO.Framework.Login;
namespace FrameworkDAL.CustomCode.Promotion
{
public interface IPromotionAssetLinkDAL
{
/// Dedup lookup — null if this (origin, entity type, origin id) triple has
/// never been promoted to this deployment before.
Task GetByOrigin(
string originEnvironmentCode, string entityTypeCode, int originEntityId,
LoginDTO login, CancellationToken ct);
Task Insert(PromotionAssetLinkDTO dto, LoginDTO login, CancellationToken ct);
Task UpdateAfterPromotion(PromotionAssetLinkDTO dto, LoginDTO login, CancellationToken ct);
}
}