コード例 #1
0
        /// <summary>
        /// 接受取钱信息
        /// </summary>
        /// <param name="money">传入取钱金额</param>
        /// <returns></returns>
        public IActionResult WithDrawalInformation(double money)
        {
            bool istrue = cardServive.DrawalService(DAndC(), 1, money);

            if (istrue == true) //修改存款余额成功
            {                   //返回成功页面
                return(Redirect(Url.Action("Success", "Cards")));
            }
            else
            {//错误页面
                return(Redirect(Url.Action("MoneyError", "Errors")));
            }
        }