示例#1
0
        public Respbase DeleteMsg(ReqDeleteMsg req)
        {
            FriFacade facade = new FriFacade();
            bool      result = facade.DeleteMsg(req);

            return(facade.PromptInfo);
        }
示例#2
0
        /// <summary>
        /// 删除信友圈
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public bool DeleteMsg(ReqDeleteMsg req)
        {
            TnetReginfo  regInfo = PxinCache.GetRegInfo(req.Nodeid);
            TpxinMessage message = db.TpxinMessageSet.FirstOrDefault(a => a.Infoid == req.Infoid && a.Status == 1);

            if (message == null)
            {
                Alert("删除的信友圈不存在");
                return(false);
            }
            message.Status = 0;
            if (db.SaveChanges() <= 0)
            {
                Alert("删除信友圈失败");
                return(false);
            }
            Alert("删除信友圈成功", 1);
            return(true);
        }