Пример #1
0
        public List <TweetModel> GetAllTweetsOfUser(string loginId)
        {
            List <TweetModel> tweetModels = new List <TweetModel>();
            UserModel         user        = new UserModel();

            user = _userRepository.FindByCondition(x => x.username.Equals(loginId));
            if (user != null)
            {
                tweetModels = _tweetRepository.FindAllByCondition(x => x.username.Equals(user.username));
            }
            return(tweetModels);
        }