refactor(EnvelopeController): add Send Access Code-region
This commit is contained in:
parent
8d8757810c
commit
0c900d219c
@ -75,7 +75,7 @@ public class EnvelopeController : ViewControllerBase
|
|||||||
if (er is null)
|
if (er is null)
|
||||||
return this.ViewEnvelopeNotFound();
|
return this.ViewEnvelopeNotFound();
|
||||||
|
|
||||||
#region rejected or signed
|
#region Rejected or Signed
|
||||||
//check rejection
|
//check rejection
|
||||||
var rejRcvrs = await _historyService.ReadRejectingReceivers(er.Envelope!.Id);
|
var rejRcvrs = await _historyService.ReadRejectingReceivers(er.Envelope!.Id);
|
||||||
if (rejRcvrs.Any())
|
if (rejRcvrs.Any())
|
||||||
@ -93,6 +93,7 @@ public class EnvelopeController : ViewControllerBase
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Send Access Code
|
||||||
bool accessCodeAlreadyRequested = await _historyService.AccessCodeAlreadyRequested(envelopeId: er.Envelope!.Id, userReference: er.Receiver!.EmailAddress);
|
bool accessCodeAlreadyRequested = await _historyService.AccessCodeAlreadyRequested(envelopeId: er.Envelope!.Id, userReference: er.Receiver!.EmailAddress);
|
||||||
if (!accessCodeAlreadyRequested)
|
if (!accessCodeAlreadyRequested)
|
||||||
{
|
{
|
||||||
@ -105,6 +106,7 @@ public class EnvelopeController : ViewControllerBase
|
|||||||
return this.ViewAccessCodeNotSent();
|
return this.ViewAccessCodeNotSent();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
return Redirect($"{envelopeReceiverId}/Locked");
|
return Redirect($"{envelopeReceiverId}/Locked");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user