fix missing json data
This commit is contained in:
parent
7abde3a1f4
commit
970aa5056f
@ -53,6 +53,14 @@ namespace EnvelopeGenerator.Web.Controllers
|
|||||||
|
|
||||||
string annotationData = await envelopeService.EnsureValidAnnotationData(Request);
|
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);
|
var signResult = actionService?.SignEnvelope(response.Envelope, response.Receiver);
|
||||||
|
|
||||||
return Ok();
|
return Ok();
|
||||||
|
|||||||
@ -10,6 +10,7 @@ namespace EnvelopeGenerator.Web.Services
|
|||||||
{
|
{
|
||||||
private readonly ReceiverModel receiverModel;
|
private readonly ReceiverModel receiverModel;
|
||||||
private readonly EnvelopeModel envelopeModel;
|
private readonly EnvelopeModel envelopeModel;
|
||||||
|
private readonly DocumentStatusModel documentStatusModel;
|
||||||
|
|
||||||
public EnvelopeService(IConfiguration Config, LoggingService Logging, DatabaseService database) : base(Config, Logging)
|
public EnvelopeService(IConfiguration Config, LoggingService Logging, DatabaseService database) : base(Config, Logging)
|
||||||
{
|
{
|
||||||
@ -155,6 +156,11 @@ namespace EnvelopeGenerator.Web.Services
|
|||||||
return document;
|
return document;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool InsertDocumentStatus(Common.DocumentStatus documentStatus)
|
||||||
|
{
|
||||||
|
return documentStatusModel.InsertOrUpdate(documentStatus);
|
||||||
|
}
|
||||||
|
|
||||||
public async Task<byte[]> GetDocumentContents(EnvelopeDocument document)
|
public async Task<byte[]> GetDocumentContents(EnvelopeDocument document)
|
||||||
{
|
{
|
||||||
logger.Debug("Loading file [{0}]", document.Filepath);
|
logger.Debug("Loading file [{0}]", document.Filepath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user