コード例 #1
0
        public JsonResult code_get(string from_val, string to_val)
        {
            double min_v = 0;
            try
            {
                CurrencyData cd = new CurrencyData(CurrencyList.GetCode(from_val), CurrencyList.GetCode(to_val));
                CurrencyCode cc = new CurrencyCode();
                cc.AdjustToLocalTime = true;
                string st1 = CurrencyList.GetCode(from_val);
                string st2 = CurrencyList.GetCode(to_val);
                IList<CurrencyData> list = new List<CurrencyData>(1);
                cc.GetCurrencyData(ref cd);
                 min_v = cd.Rate;
                double max_v = cd.Max;

            }
            catch (Exception)
            {

                throw;
            }
            return Json(min_v, JsonRequestBehavior.AllowGet);
        }