Пример #1
0
        public ActionResult DeleteAllRecMail(int[] RecidList)
        {
            if (RecidList.Length <= 0)
            {
                return(FailResult("请选择联系人"));
            }

            DataAccess.Tnsmtp_Recmail tnsmtp = new DataAccess.Tnsmtp_Recmail();
            if (!tnsmtp.DeleteAllByUserId(SysUser.UserId, RecidList))
            {
                return(FailResult());
            }
            return(SuccessResult());
        }
Пример #2
0
        public ActionResult GetContent(int recid)
        {
            DataAccess.Tnsmtp_Recmail tnsmtp_Recmail = new DataAccess.Tnsmtp_Recmail();
            if (!tnsmtp_Recmail.SelectByUserId(recid, SysUser.UserId))
            {
                return(FailResult());
            }
            tnsmtp_Recmail.FlagRead = 1;

            if (!tnsmtp_Recmail.Update())
            {
                return(FailResult());
            }
            return(JsonResult(tnsmtp_Recmail.DataRow.ToDynamic()));
        }
Пример #3
0
        public ActionResult IsStar(int status, int rid)
        {
            DataAccess.Tnsmtp_Recmail tnsmtp_Recmail = new DataAccess.Tnsmtp_Recmail();

            if (!tnsmtp_Recmail.SelectByPK(rid))
            {
                return(FailResult("网络连接故障!"));
            }
            tnsmtp_Recmail.FlagStatus = status == 1 ? 0 : 1;

            if (!tnsmtp_Recmail.Update())
            {
                return(FailResult("修改失败!"));
            }

            return(SuccessResult("修改成功!"));
        }