Adapted the repositories to the controllers

This commit is contained in:
2024-05-23 16:29:35 +02:00
parent c7d4307f47
commit 3b7ca0973e
7 changed files with 101 additions and 93 deletions

View File

@ -4,13 +4,14 @@ namespace Accounting.BLI
{
public interface IAccountRecords
{
bool AddAccountRecord(AccountRecord record);
AccountRecord SaveAcountRecord(AccountRecord record);
bool DeleteAccountRecord(AccountRecord record);
Task<bool> AddAccountRecordAsync(AccountRecord record);
Task<AccountRecord> SaveAcountRecordAsync(AccountRecord record);
Task<bool> DeleteAccountRecordAsync(AccountRecord record);
bool DeleteAllAccountRecords();
IEnumerable<AccountRecord> GetAllAccBetweenDates(DateTime dateFrom, DateTime dateTo);
IEnumerable<AccountRecord> GetAllAccounts();
AccountRecord GetAccount(int id);
AccountRecord GetAccountByDateBelKonto(DateTime _date, double _belopp, string _konto);
Task<IEnumerable<AccountRecord>> GetAllAccountsAsync();
Task<AccountRecord> GetAccountAsync(int id);
Task<AccountRecord> GetAccountByDateBelKontoAsync(DateTime _date, double _belopp, string _konto);
Task<List<AccountRecord>> AddAccRecordsFromJsonAsync(string jsonFile);
}
}