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