EnvelopeController aktualisiert, um das Ablehnen von Umschlägen mit optionalem Grund zu ermöglichen.
This commit is contained in:
@@ -115,7 +115,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
|
||||
[Authorize]
|
||||
[HttpPost("reject")]
|
||||
public async Task<IActionResult> Reject()
|
||||
public async Task<IActionResult> Reject([FromBody] string? reason = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -137,7 +137,7 @@ namespace EnvelopeGenerator.Web.Controllers
|
||||
return Unauthorized();
|
||||
}
|
||||
|
||||
return await _histService.RecordAsync(envRcvRes.Data.EnvelopeId, userReference: mail, EnvelopeStatus.DocumentRejected).ThenAsync(
|
||||
return await _histService.RecordAsync(envRcvRes.Data.EnvelopeId, userReference: mail, EnvelopeStatus.DocumentRejected, comment: reason).ThenAsync(
|
||||
Success: id => NoContent(),
|
||||
Fail: IActionResult (mssg, ntc) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user