Optimize data handling by embedding EnvelopeResponse in Razor Page, eliminating additional requests

This commit is contained in:
Developer 02
2024-04-08 17:05:01 +02:00
parent 1584fd6f1c
commit 6941a3db8d
3 changed files with 19 additions and 24 deletions

View File

@@ -83,7 +83,7 @@ namespace EnvelopeGenerator.Web.Controllers
var envelope = await _envelopeService.ReadByUuidAsync(uuid: decodedId.EnvelopeUuid, signature: decodedId.ReceiverSignature, withAll:true);
database.Services.actionService.EnterCorrectAccessCode(response.Envelope, response.Receiver); //for history
ViewData["EnvelopeKey"] = envelopeReceiverId;
ViewData["EnveResponse"] = response;
ViewData["EnvelopeResponse"] = response;
return View("ShowEnvelope", envelope);
}
else