Exemplo n.º 1
0
        public static bool DeleteDistributor(int userId)
        {
            //如果该分销商有下属,则不允许删除
            if (DistributorsBrower.GetDownDistributorNum(userId.ToString()) > 0)
            {
                return(false);
            }
            bool flag = new DistributorsDao().DeleteDistributor(userId);

            if (flag)
            {
                HiCache.Remove(string.Format("DataCache-Member-{0}", userId));
                HiCache.Remove(string.Format("DataCache-Distributor-{0}", userId));
            }
            return(flag);
        }