Beispiel #1
0
 public bool AddArticle(AddArticleModel articleModel)
 {
     try
     {
         _repository.AddArticle(articleModel.Article);
         var articleId = (int)_repository.GetLastArticleId();
         _repository.AddArticleAuthor(articleId, articleModel.AuthorId);
     }
     catch
     {
         return(false);
     }
     return(true);
 }