예제 #1
0
        public IActionResult MakePayment(PaymentAccount paymentAccount)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var result = _service.MakePayment(paymentAccount);

            if (result == null)
            {
                return(BadRequest());
            }

            return(Ok(result));
        }