Exemplo n.º 1
0
        public ActionResult Pay(string senderId, string receiverId, string paymentType, decimal amount)
        {
            bool result = _paymentMethodService.Pay(senderId, receiverId, paymentType, amount);

            if (!result)
            {
                return(new JsonResult(PaymentDescription.NotEnoughMoney_VN)
                {
                    StatusCode = StatusCodes.Status409Conflict
                });
            }
            return(new JsonResult(null)
            {
                StatusCode = StatusCodes.Status200OK
            });
        }