void SetupGlobal(QldbRequestModel Request) { Connection = new ConnectionService(); Global.LedgerName = Request.LedgerName; Global.AccessKey = Request.AccessKey; Global.SecretKey = Request.SecretKey; }
public IActionResult Write([FromBody] QldbRequestModel QldbRequest) { if (QldbRequest.ApiKey != ApiKey) { return(Unauthorized()); } SetupGlobal(QldbRequest); var Result = Connection.WriteData(QldbRequest.TableName, QldbRequest.Statement); return(new JsonResult(Result)); }