Стать исполнителем новая версия

This commit is contained in:
Халимов Рустам
2026-02-27 23:32:09 +03:00
parent c824e26cc0
commit 36e7c07a0d
15 changed files with 379 additions and 12 deletions

View File

@@ -49,6 +49,14 @@ public class AccountRepository : IAccountRepository
.FirstOrDefaultAsync(a => a.Phone == phone, cancellationToken);
}
public async Task<Account?> GetByPhoneIncludingDeletedAsync(string phone, CancellationToken cancellationToken)
{
return await _context.Accounts
.IgnoreQueryFilters()
.Include(a => a.Profile)
.FirstOrDefaultAsync(a => a.Phone == phone, cancellationToken);
}
public async Task UpdateAsync(Account account, CancellationToken cancellationToken)
{
Console.WriteLine($"[AccountRepository.UpdateAsync] Starting update for account: {account.Id}");