Переписаны модули, тесты, обработка ошибок
This commit is contained in:
@@ -42,6 +42,14 @@ public class AccountRepository : IAccountRepository
|
||||
.FirstOrDefaultAsync(a => a.Id == id, cancellationToken);
|
||||
}
|
||||
|
||||
public async Task<List<Account>> GetByIdsAsync(IEnumerable<Guid> ids, CancellationToken cancellationToken)
|
||||
{
|
||||
return await _context.Accounts
|
||||
.Include(a => a.Profile)
|
||||
.Where(a => ids.Contains(a.Id))
|
||||
.ToListAsync(cancellationToken);
|
||||
}
|
||||
|
||||
public async Task<Account?> GetByPhoneAsync(string phone, CancellationToken cancellationToken)
|
||||
{
|
||||
return await _context.Accounts
|
||||
|
||||
Reference in New Issue
Block a user