Add DocResult property and update EnvelopeController

- Introduced a new `DocResult` property in `EnvelopeDto.cs` and `Envelope.cs` for handling binary data.
- Rearranged properties in `EnvelopeDto.cs` for better organization.
- Modified `EnvelopeController` to return a collection of envelopes instead of a single envelope.
This commit is contained in:
Developer 02 2025-05-08 15:46:02 +02:00
parent 8d118308cd
commit 2007ae91fb
3 changed files with 8 additions and 2 deletions

View File

@ -66,6 +66,9 @@ namespace EnvelopeGenerator.Application.DTOs
public string? StatusTranslated { get; set; }
public string? ContractTypeTranslated { get; set; }
public IEnumerable<EnvelopeDocumentDto>? Documents { get; set; }
public byte[]? DocResult { get; init; }
public IEnumerable<EnvelopeDocumentDto>? Documents { get; set; }
}
}

View File

@ -86,6 +86,9 @@ namespace EnvelopeGenerator.Domain.Entities
[Column("TFA_ENABLED", TypeName = "bit")]
public bool TFAEnabled { get; set; }
[Column("DOC_RESULT", TypeName = "varbinary(max)")]
public byte[]? DocResult { get; init; }
/// <summary>
/// The sender of envelope
/// </summary>

View File

@ -76,7 +76,7 @@ public class EnvelopeController : ControllerBase
if (envelope.Uuid is string uuid)
envelopes = envelopes.Where(e => e.Uuid == uuid);
return Ok(envelope);
return Ok(envelopes);
},
Fail: IActionResult (msg, ntc) =>
{