Exemple #1
0
 // Remove upvote from database.
 public void RemoveUpvote(Upvote u)
 {
     m_db.Upvotes.Remove(u);
     Save();
 }
Exemple #2
0
 // Add an upvote to database
 public void AddUpvote(Upvote u)
 {
     m_db.Upvotes.Add(u);
     Save();
 }