Fix perf with cache
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Managing.Domain.Accounts;
|
||||
using Managing.Domain.Users;
|
||||
|
||||
namespace Managing.Application.Abstractions.Repositories;
|
||||
|
||||
@@ -11,4 +12,5 @@ public interface IAccountRepository
|
||||
Task UpdateAccountAsync(Account account);
|
||||
void DeleteAccountByName(string name);
|
||||
Task<IEnumerable<Account>> GetAccountsAsync();
|
||||
Task<IEnumerable<Account>> GetAccountsByUserAsync(User user);
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Managing.Application.Abstractions.Repositories;
|
||||
public interface IUserRepository
|
||||
{
|
||||
Task<User> GetUserByAgentNameAsync(string agentName);
|
||||
Task<User> GetUserByNameAsync(string name);
|
||||
Task<User> GetUserByNameAsync(string name, bool fetchAccounts = false);
|
||||
Task<IEnumerable<User>> GetAllUsersAsync();
|
||||
Task SaveOrUpdateUserAsync(User user);
|
||||
}
|
||||
Reference in New Issue
Block a user