public static void deleteUser(int index) { users.RemoveAt(index); Helper.saveUsers(users); }
public static void addArticle(Article article) { articles.Add(article); Helper.saveArticles(articles); }
public static void addArticlePreview(Article articlePrev) { articlesPreview.Add(articlePrev); Helper.saveArticlesPreview(articlesPreview); }
public static void deleteArticle(int index) { articles.RemoveAt(index); Helper.saveArticles(articles); }