예제 #1
0
 public void ModifyReply(Reply reply)
 {
     dbReplies.Entry(reply).State = EntityState.Modified;
     dbReplies.SaveChanges();
 }
예제 #2
0
 public void RemoveRepliy(Reply reply)
 {
     dbReplies.Replies.Remove(reply);
     dbReplies.SaveChanges();
 }
예제 #3
0
 public void AddReply(Reply reply)
 {
     dbReplies.Replies.Add(reply);
     dbReplies.SaveChanges();
 }