using AccountsDAL.DTO.Account; using GB5Shared.DTO.Framework.Login; namespace AccountsDAL.CustomCode.AccountTree { public interface IAccountTreeDAL { // Flat lists (JSON) consumed by AccountTreeBLL to assemble the nested tree — // mirrors AccountGroupDAL.GetAccountGroupTree's own "return the flat list, let the // BLL nest it" convention. Task GetAccountScheduleFlatList(LoginDTO loginDTO, CancellationToken ct); Task GetAccountGroupFlatList(LoginDTO loginDTO, CancellationToken ct); // One page of Account rows for a single Group — called only when that Group is // expanded client-side (accounts are never eagerly pulled into GetAccountTree). Task> GetAccountsByGroup( int accountGroupId, int firstNumber, int maxResult, LoginDTO loginDTO, CancellationToken ct); } }