Переписаны модули, тесты, обработка ошибок

This commit is contained in:
Халимов Рустам
2026-03-10 21:08:03 +03:00
parent 5c9c6ab975
commit 4e06e48657
126 changed files with 6549 additions and 803 deletions

View File

@@ -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