Files
duempelkas/src/Duempelkas.App/Services/IAccountService.cs
T

18 lines
825 B
C#

using Duempelkas.App.Services.Models;
namespace Duempelkas.App.Services;
public interface IAccountService
{
Task<List<AccountSummaryDto>> GetAllAccountsAsync();
Task<List<AccountSummaryDto>> GetAllAccountsAsync(int? year);
Task<AccountSummaryDto> GetAccountAsync(int accountId);
Task<AccountSummaryDto> CreateAccountAsync(string name);
Task<AccountSummaryDto> CreateAccountAsync(string name, decimal initialBalance);
Task RenameAccountAsync(int accountId, string newName);
Task UpdateCarryoverAsync(int accountId, decimal carryoverBalance);
Task UpdateCarryoverAsync(int accountId, decimal carryoverBalance, int? year);
Task CorrectCarryoverAsync(int accountId, decimal value, int? year, decimal expectedCarryover, decimal expectedInitial);
Task DeleteAccountAsync(int accountId);
}