Ejemplo n.º 1
0
        public void UpdateArticleKeywords()
        {
            Article article = new Article(23, "my article", "hello world", false, "hello");

            article.Keywords = new List <ArticleKeyword>
            {
                new ArticleKeyword(23, "key11"),
                new ArticleKeyword(24, "word")
            };
            article.Category = new Category(0, "category");

            UpdatingKeyword updatingKeyword = new UpdatingKeyword(_unitofwork);

            updatingKeyword.UpdateArticleKeywords(article);
            _unitofwork.Commit();
        }
Ejemplo n.º 2
0
 public void UpdateKeyword(Article article)
 {
     _updatingKeyword.UpdateArticleKeywords(article);
 }