/// <summary> /// Adds a reply to the data context. /// </summary> /// <param name="reply">The reply to be added.</param> public void AddReply(Reply reply) { _entityContainer.Replies.Add(reply); _entityContainer.SaveChanges(); }
/// <summary> /// Deletes a reply from the data context. /// </summary> /// <param name="reply">The reply to be deleted.</param> public void DeleteReply(Reply reply) { _entityContainer.Replies.Remove(reply); _entityContainer.SaveChanges(); }
/// <summary> /// Updates an existing reply in the data context. /// </summary> /// <param name="reply">The reply to be updated.</param> public void UpdateReply(Reply reply) { _entityContainer.SaveChanges(); }