public object CreateTweet(CreateTweetInput input) { var tweet = new Tweet { Id = Guid.NewGuid().ToString("N"), Content = input.Content, CreateTime = DateTime.Now }; var o = TweetRepository.Insert(tweet); return(o); }
public void AddTweet(Twitter_Shared.Data.Model.Tweet tweet) { _tweetRepository.Insert(tweet); }