public ActionResult Payable(int paymentMethodId, int amount) { string result = _paymentMethodService.Payable(paymentMethodId, amount); if (result == PaymentDescription.NotAvailable) { return(new JsonResult(PaymentDescription.NotAvailable_VN) { StatusCode = StatusCodes.Status404NotFound }); } else if (result == PaymentDescription.NotPayable) { return(new JsonResult(PaymentDescription.NotPayable_VN) { StatusCode = StatusCodes.Status409Conflict }); } else if (result == PaymentDescription.Payable) { return(new JsonResult(PaymentDescription.Payable_VN) { StatusCode = StatusCodes.Status200OK }); } return(new JsonResult(PaymentDescription.NotAvailable_VN) { StatusCode = StatusCodes.Status404NotFound }); }