using System.Data.Common; using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using MarketingDAL.DTO.Segment; namespace MarketingDAL.CustomCode.Segment; public interface ISegmentDAL { Task GetSegment(int segmentId, LoginDTO loginDTO, CancellationToken ct); Task GetSelectListSegment(CriteriaDTO criteriaDTO, LoginDTO loginDTO, CancellationToken ct); // Transactional write overloads — called from BaseEntityAppService.ExecuteSaveAsync's // persistFunc so the save participates in the single pipeline transaction. Task SaveSegment(SegmentDTO segmentDTO, LoginDTO loginDTO, DbTransaction tx, CancellationToken ct); Task UpdateSegment(SegmentDTO segmentDTO, LoginDTO loginDTO, DbTransaction tx, CancellationToken ct); Task DeleteSegment(int segmentId, LoginDTO loginDTO, CancellationToken ct); }