Beispiel #1
0
        public ActionResult Get(Guid id)
        {
            try
            {
                var response = _paymentGateway.RetrievePaymentInfo(id);
                if (response == null)
                {
                    return(StatusCode((int)HttpStatusCode.NotFound));
                }

                return(StatusCode((int)HttpStatusCode.OK, response));
            }
            catch (Exception ex)
            {
                _logger.LogError("Error getting Payment Information", ex);
                return(StatusCode((int)HttpStatusCode.BadRequest));
            }
        }