Beispiel #1
0
        /// <summary>
        /// 新增汇率信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        public ActionResult AddRate(RateOperateDTO dto)
        {
            ResultData <object> result = new ResultData <object>();
            UserLoginDTO        user   = (UserLoginDTO)Session["UserLoginInfo"];

            try
            {
                dto.CreateUser      = user.FullName;
                dto.CreateTime      = DateTime.Now;
                result.SubmitResult = BaseInfoProvider.AddRate(dto);
            }
            catch (Exception ex)
            {
                result.SubmitResult = false;
                result.Message      = ex.Message;
            }

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