Beispiel #1
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()));
        }
Beispiel #2
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("修改成功!"));
        }