public static void UpdateArticle(ArticleInfo article) { _provider.UpdateArticle(article.Id, article.Title, article.Content); }
/// <summary> /// Updates the article. /// </summary> /// <param name="id">The identifier.</param> /// <param name="title">The title.</param> /// <param name="content">The content.</param> /// <returns>True if successful; otherwise false.</returns> public bool UpdateArticle(int id, string title, string content) { _articles[id] = new ArticleInfo(id, title, content); return(true); }