public void Execute() { var article = InMemoryDatabase.GetById(Id); if (article == null) { throw new InvalidOperationException("No such article."); } Console.WriteLine("Found article with ID: " + article.Id); }
public void Execute() { var article = InMemoryDatabase.GetById(Id); if (article == null) { throw new InvalidOperationException("No such article."); } Console.WriteLine("Found article with ID: " + article.Id); }