public void addReplyForum(ReplyForum replyforum) { replyforum.ReplyTime = DateTime.Now; replyforum.ReplyForumParise = 1; db.ReplyForum.Add(replyforum); db.SaveChanges(); }
public void DeleteReply(int id) { ReplyForum repli = db.ReplyForum.Single(p => p.ReplyForum_id == id); db.ReplyForum.Remove(repli); db.SaveChanges(); }
public string AddReplyVideo(ReplyForum repmilivideo, string conntent, string id, string commuser) { var comnid = Convert.ToInt32(id); var userid = Convert.ToInt32(Session["User_id"]); if (!string.IsNullOrEmpty(conntent)) { repmilivideo.Content = conntent; repmilivideo.CommentForum_id = comnid; repmilivideo.CommentUserName = commuser; repmilivideo.User_id = userid; ForumManage.addReplyForum(repmilivideo); return("success"); } else { return("fail"); } }
public void UpdateRely(ReplyForum replyforum) { db.Entry <ReplyForum>(replyforum).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); }
public static void UpdateRely(ReplyForum replyforum) { foru.UpdateRely(replyforum); }
public static void addReplyForum(ReplyForum replyforum) { foru.addReplyForum(replyforum); }