Beispiel #1
0
        /// <summary>
        /// 注销实名认证
        /// </summary>
        public void LogOffRealNameAuthen(string userId)
        {
            //开启事务
            using (var biz = new GameBizBusinessManagement())
            {
                biz.BeginTran();

                var manager = new UserRealNameManager();
                var entity  = manager.GetUserRealName(userId);
                if (entity == null)
                {
                    throw new ArgumentException("此用户从未进行过实名认证");
                }
                manager.DeleteUserRealName(entity);

                biz.CommitTran();
            }
        }