20-11-23
This commit is contained in:
@@ -40,36 +40,5 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
return ErrorResponse(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//[HttpPost]
|
||||
//[Route("api/document/{envelopeKey}")]
|
||||
//public async Task<IActionResult> Update(string envelopeKey)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// logger.Info("DocumentController/Update");
|
||||
|
||||
// // Validate Envelope Key and load envelope
|
||||
// envelopeService.EnsureValidEnvelopeKey(envelopeKey);
|
||||
// EnvelopeResponse response = envelopeService.LoadEnvelope(envelopeKey);
|
||||
|
||||
// // Load Document info
|
||||
// var Request = ControllerContext.HttpContext.Request;
|
||||
// var document = envelopeService.GetDocument(Request, envelopeKey);
|
||||
|
||||
// // Update the document with new data
|
||||
// await envelopeService.UpdateDocument(Request.Body, document.Filepath);
|
||||
|
||||
// // Add history entry
|
||||
// envelopeService.InsertHistoryEntrySigned(response);
|
||||
|
||||
// return Ok();
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// return ErrorResponse(e);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,6 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
public class ActionObject
|
||||
{
|
||||
public string? ActionType { get; set; }
|
||||
public string? ActionDescription { get; set; }
|
||||
}
|
||||
|
||||
public class HistoryController : BaseController
|
||||
@@ -33,7 +32,6 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
EnvelopeResponse response = envelopeService.LoadEnvelope(envelopeKey);
|
||||
|
||||
string actionTypeString = action.ActionType;
|
||||
string actionDescription = action.ActionDescription;
|
||||
|
||||
if (!Enum.TryParse<EnvelopeHistoryActionType>(actionTypeString, out var actionType))
|
||||
{
|
||||
@@ -42,7 +40,6 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
|
||||
envelopeService.InsertHistoryEntry(new EnvelopeHistoryEntry()
|
||||
{
|
||||
ActionDescription = actionDescription,
|
||||
ActionDate = DateTime.Now,
|
||||
ActionType = actionType,
|
||||
EnvelopeId = response.Envelope.Id,
|
||||
|
||||
Reference in New Issue
Block a user