Compare commits
2 Commits
7abde3a1f4
...
5b313e069e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b313e069e | ||
|
|
970aa5056f |
@@ -282,7 +282,7 @@ Partial Public Class frmEnvelopeEditor
|
||||
End If
|
||||
|
||||
Dim oErrors = ValidateEnvelope()
|
||||
oErrors = Controller.ValidateEn06 - 12 - 2velopeForSending(oErrors)
|
||||
oErrors = Controller.ValidateEnvelopeForSending(oErrors)
|
||||
|
||||
If oErrors.Any() Then
|
||||
ShowValidationErrors(Resources.Envelope.Error_when_validating_the_envelope, oErrors)
|
||||
|
||||
@@ -53,6 +53,14 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
|
||||
string annotationData = await envelopeService.EnsureValidAnnotationData(Request);
|
||||
|
||||
envelopeService.InsertDocumentStatus(new DocumentStatus()
|
||||
{
|
||||
EnvelopeId = response.Envelope.Id,
|
||||
ReceiverId = response.Receiver.Id,
|
||||
Value = annotationData,
|
||||
Status = Common.Constants.DocumentStatus.Signed
|
||||
});
|
||||
|
||||
var signResult = actionService?.SignEnvelope(response.Envelope, response.Receiver);
|
||||
|
||||
return Ok();
|
||||
|
||||
@@ -10,6 +10,7 @@ namespace EnvelopeGenerator.Web.Services
|
||||
{
|
||||
private readonly ReceiverModel receiverModel;
|
||||
private readonly EnvelopeModel envelopeModel;
|
||||
private readonly DocumentStatusModel documentStatusModel;
|
||||
|
||||
public EnvelopeService(IConfiguration Config, LoggingService Logging, DatabaseService database) : base(Config, Logging)
|
||||
{
|
||||
@@ -155,6 +156,11 @@ namespace EnvelopeGenerator.Web.Services
|
||||
return document;
|
||||
}
|
||||
|
||||
public bool InsertDocumentStatus(Common.DocumentStatus documentStatus)
|
||||
{
|
||||
return documentStatusModel.InsertOrUpdate(documentStatus);
|
||||
}
|
||||
|
||||
public async Task<byte[]> GetDocumentContents(EnvelopeDocument document)
|
||||
{
|
||||
logger.Debug("Loading file [{0}]", document.Filepath);
|
||||
|
||||
Reference in New Issue
Block a user