Refactor. Add data layer
This commit is contained in:
1 parent
3b7e4e6ec5
commit
b6b794f0b4
82 files changed
+2930
-2811
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using BudgetApp.Data.Entities;
|
||||
|
||||
namespace BudgetApp.Data.Interfaces;
|
||||
|
||||
public interface IAccountRepository
|
||||
{
|
||||
Task<List<Account>> GetAccountsAsync(string userId);
|
||||
Task<Account?> GetAccountAsync(int id, string userId);
|
||||
Task CreateAccountAsync(Account account);
|
||||
Task UpdateAccountAsync(Account account);
|
||||
Task UpdateBalanceAsync(int id, string userId, decimal newBalance);
|
||||
Task UpdateAccountDetailsAsync(int id, string userId, string name, string color, string currencyCode);
|
||||
Task DeleteAccountAsync(int id, string userId);
|
||||
}
|
||||
Reference in new issue
Block a user