コード例 #1
0
        public ActionResult upNewContent()
        {
            var    XID    = Request["XID"];
            var    Type   = Request["Type"];
            var    Text   = Request["Text"];
            string strErr = "";

            if (SystemManage.UpdateNewContent(XID, Type, Text, ref strErr) == true)
            {
                return(Json(new { success = "true", Msg = "保存成功" }));
            }
            else
            {
                return(Json(new { success = "false", Msg = "保存出错" + "/" + strErr }));
            }
        }