Exemple #1
0
        public IActionResult GetTransactionById([FromRoute(Name = "transactionId")][Required] string transactionId)
        {
            string      clientId    = Request.HttpContext.Items["ClientId"]?.ToString();
            Transaction transaction = _transactionProcessor.GetTransactionById(transactionId, clientId);

            if (transaction == null)
            {
                return(BadRequest("Could not find Transaction"));
            }
            return(Json(transaction));
        }