コード例 #1
0
        public JsonResult GetCoinValue(string CoinAsJSONString)
        {
            decimal CoinValue = VendingService.GetCoinValue(new Coin(CoinAsJSONString));

            return(Json(new { CoinValue = CoinValue }, JsonRequestBehavior.AllowGet));
        }