Exemplo n.º 1
0
        /// <summary>
        /// 2.5 取消绑卡
        /// </summary>
        /// <param name="toRegister"></param>
        /// <returns></returns>
        public bool ToUnbindBankCard(string platformUserNo)
        {
            //  需要修改成 存储过程用事务执行操作
            SystemUsersOper systemUsersOper = new SystemUsersOper();

            if (systemUsersOper.UpdateById(platformUserNo, 0))
            {
                SystemBankCardOper systemBankCardOper = new SystemBankCardOper();
                return(systemBankCardOper.UpdateByUserId(platformUserNo));
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 用户解绑
        /// </summary>
        /// <param name="userID"></param>
        /// <returns></returns>
        public BaseResultDto <bool> UnBankCard(int userID)
        {
            BaseResultDto <bool> result = new BaseResultDto <bool>();
            // 同步返回处理
            SystemBankCardOper systemBankCardOper = new SystemBankCardOper();

            bool isOK = systemBankCardOper.UpdateByUserId(userID + "");

            if (isOK)
            {
                result.IsSeccess = true;
            }
            else
            {
                result.IsSeccess = false;
                result.ErrorMsg  = "取消绑卡失败";
            }
            return(result);
        }