fix missing json data

This commit is contained in:
Jonathan Jenne
2023-12-06 14:58:12 +01:00
parent 7abde3a1f4
commit 970aa5056f
2 changed files with 14 additions and 0 deletions

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