Beispiel #1
0
        public void PrintArticle(int articleId)
        {
            Article article = null;

            try
            {
                article = dbDriver.GetArticle(articleId);
            }
            catch (Exception ex)
            {
                logger.Error("Could not find article. Exception occured: " + ex);
            }

            if (article != null)
            {
                logger.Info("Found article with id: " + articleId + ".Article name is: " + article.Name);
            }
            else
            {
                logger.Info("Could not find article with id: " + articleId);
            }
        }