public void RemoveVideo(Movies video) { //db.Shi.Add(goods); db.Movies.Remove(video); db.SaveChanges(); }
/// <summary> /// 增加回复评论 /// </summary> /// <param name="NewsReply"></param> public void AddNewsReply(ReComment NewsReply) { db.ReComment.Add(NewsReply); db.SaveChanges(); }
/// <summary> /// 增加新闻 /// </summary> /// <param name="news"></param> public void AddNews(News news) { db.News.Add(news); db.SaveChanges(); }
public void AddUserInfo(UserInfo userInfo) { db.UserInfo.Add(userInfo); db.SaveChanges(); }
/// <summary> /// 增加新闻评论 /// </summary> /// <param name="newsCom"></param> public void AddNewsCom(Comments newsCom) { db.Comments.Add(newsCom); db.SaveChanges(); }