refactor(EnvelopeController): add read-only region
This commit is contained in:
@@ -67,10 +67,10 @@ public class EnvelopeController : ViewControllerBase
|
|||||||
return this.ViewDocumentNotFound();
|
return this.ViewDocumentNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(decoded.GetEncodeType() == EncodeType.EnvelopeReceiverReadOnly)
|
#region Read Only
|
||||||
|
if (decoded.GetEncodeType() == EncodeType.EnvelopeReceiverReadOnly)
|
||||||
return await EnvelopeReceiverReadOnly(decoded.ParseReadOnlyId());
|
return await EnvelopeReceiverReadOnly(decoded.ParseReadOnlyId());
|
||||||
|
#endregion
|
||||||
ViewData["EnvelopeKey"] = envelopeReceiverId;
|
|
||||||
|
|
||||||
var er = await _mediator.ReadEnvelopeReceiverAsync(envelopeReceiverId);
|
var er = await _mediator.ReadEnvelopeReceiverAsync(envelopeReceiverId);
|
||||||
|
|
||||||
@@ -123,6 +123,8 @@ public class EnvelopeController : ViewControllerBase
|
|||||||
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
|
[Obsolete("Use DigitalData.Core.Exceptions and .Middleware")]
|
||||||
public async Task<IActionResult> EnvelopeLocked(EnvelopeReceiverDto er, CancellationToken cancel)
|
public async Task<IActionResult> EnvelopeLocked(EnvelopeReceiverDto er, CancellationToken cancel)
|
||||||
{
|
{
|
||||||
|
ViewData["EnvelopeKey"] = envelopeReceiverId;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (er is null)
|
if (er is null)
|
||||||
|
|||||||
Reference in New Issue
Block a user