Пример #1
0
 public void addReplyForum(ReplyForum replyforum)
 {
     replyforum.ReplyTime        = DateTime.Now;
     replyforum.ReplyForumParise = 1;
     db.ReplyForum.Add(replyforum);
     db.SaveChanges();
 }
Пример #2
0
        public void DeleteReply(int id)
        {
            ReplyForum repli = db.ReplyForum.Single(p => p.ReplyForum_id == id);

            db.ReplyForum.Remove(repli);
            db.SaveChanges();
        }
Пример #3
0
        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");
            }
        }
Пример #4
0
 public void UpdateRely(ReplyForum replyforum)
 {
     db.Entry <ReplyForum>(replyforum).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
 }
Пример #5
0
 public static void UpdateRely(ReplyForum replyforum)
 {
     foru.UpdateRely(replyforum);
 }
Пример #6
0
 public static void addReplyForum(ReplyForum replyforum)
 {
     foru.addReplyForum(replyforum);
 }