using FMDAL.DTO.AssetLedger; using GB5Shared.DTO.Framework.Login; using System.Collections.Generic; using System.Data.Common; using System.Threading; using System.Threading.Tasks; namespace FMBLL.AssetLedger { public interface IAssetLedgerBLL { Task GetAssetLedger(int assetLedgerId, LoginDTO login, CancellationToken ct); Task> GetAssetLedgerListByAsset(int assetId, LoginDTO login, CancellationToken ct); Task> GetAssetLedgerListByReference(string referenceType, int referenceId, LoginDTO login, CancellationToken ct); Task SaveAssetLedger(AssetLedgerDTO dto, LoginDTO login, CancellationToken ct); Task VoidAssetLedger(int assetLedgerId, LoginDTO login, CancellationToken ct); /// Transaction-scoped save — caller owns the transaction (see AssetScanEventHandler). Task SaveAssetLedgerInTransaction(AssetLedgerDTO dto, LoginDTO login, DbTransaction tx, CancellationToken ct); } }