Files
Core_Be/Interfaces/IProfitLossRepository.cs
Dhananjaya99 bffc9b1686 first commit
2026-09-28 11:44:26 +05:30

25 lines
767 B
C#

using Fitness_core_BE.DTOs.Ledger;
using Fitness_core_BE.Models;
namespace Fitness_core_BE.Interfaces
{
public interface IProfitLossRepository
{
Task<List<LedgerEntryDto>> GetDerivedEntriesAsync(
Guid clientId,
DateTime fromUtc,
DateTime toUtc,
CancellationToken ct = default);
Task<List<LedgerEntry>> GetManualEntriesAsync(
Guid clientId,
DateTime fromUtc,
DateTime toUtc,
CancellationToken ct = default);
Task<LedgerEntry?> GetManualEntryByIdAsync(Guid id, CancellationToken ct = default);
Task AddManualEntryAsync(LedgerEntry entry, CancellationToken ct = default);
void RemoveManualEntry(LedgerEntry entry);
}
}