Пример #1
0
        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);
        }
Пример #2
0
 public void AddTweet(Twitter_Shared.Data.Model.Tweet tweet)
 {
     _tweetRepository.Insert(tweet);
 }