Exemple #1
0
        public void Delete(JournalGetViewModel journalView)
        {
            List <ArticleInJournal> articleInJournal = _articleInjournalRepository.GetJournal(journalView.Juornal.Id).ToList();

            if (articleInJournal != null)
            {
                _articleInjournalRepository.Delete(articleInJournal);
            }
        }
Exemple #2
0
        public void DeleteArticle(ArticleGetViewModel articleView)
        {
            List <AuthorInArticle> authorInArticle = _authorInArticleRepository.GetArticle(articleView.Article.Id);

            if (authorInArticle != null)
            {
                _authorInArticleRepository.Delete(authorInArticle);
            }
            List <ArticleInJournal> articleInJournal = _articleInJournalRepository.GetJournal(articleView.Article.Id).ToList();

            if (articleInJournal != null)
            {
                _articleInJournalRepository.Delete(articleInJournal);
            }
        }