Beispiel #1
0
 public void SellArticle(Article article, int buyerId)
 {
     try
     {
         logger.Debug("Trying to sell article with id = " + article.Id);
         var soldPrice = dbDriver.SellArticle(article, buyerId);
         logger.Info("Article with id = " + article.Id + " has been sold for the price of: " + soldPrice);
     }
     catch (Exception ex)
     {
         logger.Error("Could not sell article. Exception occured: " + ex);
     }
 }