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