Replace VerifySend with SendInstitutionVerificationCode

Replaced the `_smsService.VerifySend` method with the new
asynchronous `_smsService.SendInstitutionVerificationCode`
method. The new method includes additional parameters:
`contractingPartyFullName`, `contractingParty.id`, and
`institutionContract.id`, providing more context for the
verification process. Added `await` to ensure proper
asynchronous execution.
This commit is contained in:
2025-11-26 18:25:26 +03:30
parent 7e80342f80
commit 91403a52a3

View File

@@ -1244,7 +1244,8 @@ public class InstitutionContractApplication : IInstitutionContractApplication
try
{
await _institutionContractRepository.SaveChangesAsync();
_smsService.VerifySend(contractingParty.Phone, code);
await _smsService.SendInstitutionVerificationCode(contractingParty.Phone, code,contractingPartyFullName,
contractingParty.id, institutionContract.id);
}
catch (Exception e)
{