17 lines
569 B
C#
17 lines
569 B
C#
using Managing.Domain.Accounts;
|
|
using Managing.Domain.Users;
|
|
|
|
namespace Managing.Application.Abstractions.Repositories;
|
|
|
|
public interface IAccountRepository
|
|
{
|
|
Task<Account> GetAccountByNameAsync(string name);
|
|
Task<Account> GetAccountByIdAsync(int id);
|
|
Task<Account> GetAccountByKeyAsync(string key);
|
|
Task InsertAccountAsync(Account account);
|
|
Task UpdateAccountAsync(Account account);
|
|
void DeleteAccountByName(string name);
|
|
Task<IEnumerable<Account>> GetAccountsAsync();
|
|
Task<IEnumerable<Account>> GetAccountsByUserAsync(User user);
|
|
}
|