Exemple #1
0
        public ActionResult UpdateTemp(Tnsmtp_MailtemplateMap model)
        {
            DataAccess.Tnsmtp_Mailtemplate tnsmtp_Mailtemplate = new DataAccess.Tnsmtp_Mailtemplate();

            if (!tnsmtp_Mailtemplate.SelectByPK(model.MtId))
            {
                return(FailResult("修改失败"));
            }

            tnsmtp_Mailtemplate.TempName    = model.TempName;
            tnsmtp_Mailtemplate.TempContent = model.TempContent;

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