public static string updateTicketIntrodection(string Id, string context) { GZSceneryinfo scenery = new GZSceneryinfo(Id, context); CGZSceneryinfo cscenery = new CGZSceneryinfo(); Boolean issucess=cscenery.Modify(scenery); if (issucess == true) { return "true"; } else { return "false"; } }
public Boolean InsertIntroduction(string content) { try { GZSceneryinfo sceneryinfo = new GZSceneryinfo(null, content); CGZSceneryinfo cscenery = new CGZSceneryinfo(); Boolean issucess= cscenery.Insert(sceneryinfo); if (issucess==true) Response.Write("<script>alert('提交成功');</script>"); else Response.Write("<script>alert('提交失败');</script>"); }catch(Exception e) { Response.Write("<script>alert('提交失败');</script>"); return false; } return true; }