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

15 lines
549 B
C#

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