Last active
February 4, 2022 14:12
-
-
Save bjoerntx/215a707196840b37b406cfa9a90a3f4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public IActionResult HandleSignature([FromBody] SignatureData data, string securityToken) | |
{ | |
ReturnObject returnObject = new ReturnObject(); | |
if (securityToken != "123") | |
{ | |
return Ok(returnObject); | |
} | |
// here, you have access to the signed document and other meta data | |
var test = data.SignedDocument.Document; | |
returnObject.Success = true; | |
returnObject.Id = data.SignedDocument.UniqueId; | |
return Ok(returnObject); | |
} | |
public class ReturnObject | |
{ | |
public string Id { get; set; } | |
public bool Success { get; set; } = false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment