Beispiel #1
0
 public void GetReactions(Article article)
 {
     this.Reactions = DatabaseManager.GetReactions(article);
     this.Reactions.Sort((x, y) => y.PostTime.CompareTo(x.PostTime));
 }
Beispiel #2
0
 public Article GetArticle(string id)
 {
     return(DatabaseManager.GetArticle(id));
 }
Beispiel #3
0
 public bool UpdateArticle(Article article)
 {
     return(DatabaseManager.UpdateArticle(article));
 }
Beispiel #4
0
 public List <Article> GetArticles()
 {
     return(DatabaseManager.GetArticles());
 }
Beispiel #5
0
 public bool AddArticle(Article article, int catid)
 {
     return(DatabaseManager.AddArticle(article, catid));
 }