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