public ActionResult reportComment(int comment_ID) { string msg = ""; CM.Comment cm = new CM.Comment(); msg = cm.reportComment(comment_ID, Session["suserID"].ToString()); return(Content(msg)); }
public ActionResult modifyComment(int comment_ID, string content_text) { string msg = ""; CM.Comment cm = new CM.Comment(); msg = cm.modifyComment(comment_ID, content_text, Session["suserID"].ToString()); return(Content(msg)); }
public ActionResult browseHistoryComment(string user_ID) { CM.Comment comment = new CM.Comment(); List <CM.CommentModel> cmHistoryModel = new List <CM.CommentModel>(); cmHistoryModel = comment.browseHistoryComment(user_ID); return(Json(cmHistoryModel)); }
public ActionResult insertComment(CM.CommentModel commentModel) { string msg = ""; CM.Comment cm = new CM.Comment(); commentModel.SessionID = Session["suserID"].ToString(); msg = cm.insertComment(commentModel); return(Content(msg)); }
// 傳入 使用者PK 執行 [瀏覽歷史評論紀錄] 功能 // 回傳 整筆資料或部分資料(json的HistoryModel型態) public ActionResult browseHistoryComment() { System.Diagnostics.Debug.Print(Session["suserID"].ToString() + " this is"); CM.Comment comment = new CM.Comment(); List <CM.CommentModel> hcommentModel = new List <CM.CommentModel>(); hcommentModel = comment.browseHistoryComment(Session["suserID"].ToString()); return(Json(hcommentModel)); }
public ActionResult browseMemberComment(int job_ID) { CM.Comment comment = new CM.Comment(); List <CM.CommentModel> cmMemberModel = new List <CM.CommentModel>(); cmMemberModel = comment.browseJobComment(job_ID); //序列化 string json = JsonConvert.SerializeObject(cmMemberModel); return(Json(cmMemberModel)); }