Files
Distribution_GL/Interfaces/Repositories/ICostCenterRepository.cs
T

16 lines
590 B
C#

using General_Ledger_Service.DTOs.CostCenters;
using General_Ledger_Service.Models;
namespace General_Ledger_Service.Interfaces.Repositories
{
public interface ICostCenterRepository
{
Task<CostCenter?> GetByIdAsync(long costCenterId);
Task<CostCenter?> GetByCodeAsync(string code);
Task<int> GetAncestorDepthAsync(long parentCostCenterId);
Task<string?> GetAncestorBreadcrumbAsync(long costCenterId);
Task<List<CostCenterTreeNode>> GetDescendantTreeAsync(long costCenterId);
Task<CostCenter> AddAsync(CostCenter costCenter);
}
}