Refactor InsertReceiver method in EnvelopeEditorController

Removed conditional check for receiver ID in InsertReceiver.
The method now always attempts to insert the receiver,
simplifying the logic and ensuring consistent behavior.
This commit is contained in:
tekh 2025-09-01 13:27:38 +02:00
parent 3e3c9d4c54
commit a584a548d6

View File

@ -402,11 +402,7 @@ Public Class EnvelopeEditorController
End Function
Private Function InsertReceiver(pReceiver As Receiver, pTransaction As SqlTransaction) As Boolean
If pReceiver.HasId = False Then
Return ReceiverModel.Insert(pReceiver, pTransaction)
Else
Return True
End If
Return ReceiverModel.Insert(pReceiver, pTransaction)
End Function
Public Function GetLastNameByEmailAdress(pEmailAdress As String) As String