25 lines
767 B
C#
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);
|
|
}
|
|
}
|