Compare commits

...

2 Commits

Author SHA1 Message Date
Jonathan Jenne
5b313e069e typo 2023-12-06 15:06:32 +01:00
Jonathan Jenne
970aa5056f fix missing json data 2023-12-06 14:58:12 +01:00
3 changed files with 15 additions and 1 deletions

View File

@@ -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)

View File

@@ -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();

View File

@@ -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);