示例#1
0
        /// <summary>
        /// 得到一条汇率信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public ActionResult GetOneRate(int id)
        {
            ResultData <RateResultDTO> result = new ResultData <RateResultDTO>();

            try
            {
                result.Object       = BaseInfoProvider.GetOneRate(id);
                result.SubmitResult = true;
            }
            catch (Exception ex)
            {
                result.SubmitResult = false;
                result.Message      = ex.Message;
            }

            return(Json(result, JsonRequestBehavior.AllowGet));
        }