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:
@@ -66,6 +66,9 @@ namespace EnvelopeGenerator.Application.DTOs
|
|||||||
public string? StatusTranslated { get; set; }
|
public string? StatusTranslated { get; set; }
|
||||||
|
|
||||||
public string? ContractTypeTranslated { get; set; }
|
public string? ContractTypeTranslated { get; set; }
|
||||||
public IEnumerable<EnvelopeDocumentDto>? Documents { get; set; }
|
|
||||||
|
public byte[]? DocResult { get; init; }
|
||||||
|
|
||||||
|
public IEnumerable<EnvelopeDocumentDto>? Documents { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,6 +86,9 @@ namespace EnvelopeGenerator.Domain.Entities
|
|||||||
[Column("TFA_ENABLED", TypeName = "bit")]
|
[Column("TFA_ENABLED", TypeName = "bit")]
|
||||||
public bool TFAEnabled { get; set; }
|
public bool TFAEnabled { get; set; }
|
||||||
|
|
||||||
|
[Column("DOC_RESULT", TypeName = "varbinary(max)")]
|
||||||
|
public byte[]? DocResult { get; init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The sender of envelope
|
/// The sender of envelope
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ public class EnvelopeController : ControllerBase
|
|||||||
if (envelope.Uuid is string uuid)
|
if (envelope.Uuid is string uuid)
|
||||||
envelopes = envelopes.Where(e => e.Uuid == uuid);
|
envelopes = envelopes.Where(e => e.Uuid == uuid);
|
||||||
|
|
||||||
return Ok(envelope);
|
return Ok(envelopes);
|
||||||
},
|
},
|
||||||
Fail: IActionResult (msg, ntc) =>
|
Fail: IActionResult (msg, ntc) =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user