Exemplo n.º 1
0
        public List <TweetModel> getAllTweetsOfUser(string username)
        {
            List <TweetModel> tweetModels = new List <TweetModel>();
            UserModel         user        = new UserModel();

            user = _userRepository.FindByCondtion(x => x.username.Equals(username));
            if (user != null)
            {
                tweetModels = _tweetRepository.FindAllByCondtion(x => x.userId.Equals(user.Id));
            }
            return(tweetModels);
        }