//评论插入数据 public static bool AddComment(InserComment comment) { string sql = "insert into tb_Comment(UserID,ProjectID,ReplyID,CommentContent) values(" + comment.UserID + "," + comment.ProjectID + "," + comment.ReplyID + ",'" + comment.CommentContent + "')"; bool b = DBHelper.GetBool(sql); return(b); }
public string Connrent_s(string txt, int ProjectID) { if (Session["person"] == null) { return("2"); } Userinfo u = (Userinfo)Session["person"]; InserComment comment = new InserComment(); comment.UserID = u.UserID; comment.ProjectID = ProjectID; comment.ReplyID = u.UserID; comment.CommentContent = txt; bool b = AIKE_BLL.DataManager.AddComment(comment); if (b) { return("1"); } else { return("0"); } }
/// <summary> /// 插入评论 /// </summary> /// <param name="comment"></param> /// <returns></returns> public static bool AddComment(InserComment comment) { return(AIKE_DAL.CommentServer.AddComment(comment)); }