private static void EditTweet(int tweetId) { Console.WriteLine("---------------"); Console.Write("Posted by? "); var postedBy = Console.ReadLine(); Console.Write("New Tweet Text? "); var newTweetText = Console.ReadLine(); Tweet tweet = new Tweet { Id = tweetId, PostedBy = postedBy, Text = newTweetText }; _service.UpdateTweet(tweet); }
private static void EnterTweet() { Console.WriteLine("---------------"); Console.Write("Posted by? "); var postedBy = Console.ReadLine(); Console.Write("New Tweet Text? "); var newTweetText = Console.ReadLine(); Tweet tweet = new Tweet { PostedBy = postedBy, Text = newTweetText }; _service.CreateTweet(tweet); }