public Article Supplay(IArticleReport articleReport) { Article response = _supplier.SupplyArticle(articleReport); if (response == null) { return(_next.Supplay(articleReport)); } return(response); }
public Article SupplyArticle(IArticleReport articleReport) { if (ArticleInInventory(articleReport.Id)) { Article article = GetArticle(articleReport.Id); if (article.ArticlePrice <= articleReport.MaxExpectedPrice) { return(article); } } return(null); }
public Article Supplay(IArticleReport articleReport) { return(null); }