public ActionResult ncreply(int commentid, string rcontent) { if (rcontent != null) { U_Reply_NoteComment rcomment = new U_Reply_NoteComment(); rcomment.Likenum = 0; rcomment.NoteCommentID = commentid; rcomment.Time = DateTime.Now; rcomment.URNContent = rcontent; rcomment.UserID = Convert.ToInt32(Session["User_id"]); ureplync.AddNoteCommentReply(rcomment); //var r = ureplync.notecommentreply(commentid); var r = ureplync.notecommentreply(commentid); return(PartialView(r)); } else { return(Content("请输入")); } }
public void AddNoteCommentReply(U_Reply_NoteComment notecommentreply) { db.U_Reply_NoteComment.Add(notecommentreply); db.SaveChanges(); }
public void AddNoteCommentReply(U_Reply_NoteComment notecommentreply) { inotecommentreply.AddNoteCommentReply(notecommentreply); }