19 lines
896 B
C#
19 lines
896 B
C#
using Duempelkas.App.Services.Models;
|
|
using Duempelkas.Domain.Enums;
|
|
|
|
namespace Duempelkas.App.Services;
|
|
|
|
public interface IEntryService
|
|
{
|
|
Task<List<EntryDto>> GetEntriesAsync(int accountId, int? year);
|
|
Task<List<EntryDto>> GetEntriesAsync(int accountId, bool currentYearOnly);
|
|
Task<List<int>> GetEntryYearsAsync(int accountId);
|
|
Task<List<int>> GetAllEntryYearsAsync();
|
|
Task<EntryDto> CreateEntryAsync(int accountId, EntryType type, DateTime date, string title, decimal amount);
|
|
Task CreateTransferAsync(int sourceAccountId, int targetAccountId, DateTime date, string title, decimal amount);
|
|
Task DeleteEntryAsync(int entryId);
|
|
Task RestoreEntryAsync(int entryId);
|
|
Task UpdateEntryAsync(int entryId, DateTime date, string title, decimal amount);
|
|
Task UpdateTransferAsync(int entryId, int newLinkedAccountId, DateTime date, string title, decimal amount);
|
|
}
|