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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user