public async Task <List <TimeLineVM> > GetTimeLine(int userId, int pageIndex)
        {
            List <int> followings = await _followService.Followings(userId);

            var tweets = await _unitOfWork.TweetRepository.GetFilteredList(
                selector : x => new TimeLineVM
            {
                Id                 = x.Id,
                Text               = x.Text,
                ImagePath          = x.ImagePath,
                AppUserId          = x.AppUserId,
                UserName           = x.AppUser.UserName,
                UserProfilePicture = x.AppUser.ImagePath,
                CreateDate         = x.CreateDate,
                isLiked            = x.Likes.Any(x => x.AppUserId == userId),
                LikeCount          = x.Likes.Count,
                MentionCount       = x.Mentions.Count,
                ShareCount         = x.Shares.Count
            },
                expressionx => followings.Contains(userId),
                orderby : x => x.OrderByDescending(x => x.CreateDate),
                include : x => x.Include(x => x.AppUser)
                .ThenInclude(x => x.Followings)
                .Include(x => x.Likes),
                pageIndex : pageIndex);

            return(tweets);
        }
        public async Task <List <FollowListVM> > UsersFollowings(int id, int pageIndex)
        {
            List <int> followings = await _followService.Followings(id);

            var followingsList = await _unitOfWork.AppUserRepository.GetFilteredList(selector : y => new FollowListVM
            {
                Id        = y.Id,
                ImagePath = y.ImagePath,
                UserName  = y.UserName,
                Name      = y.Name,
            },
                                                                                     expression : x => followings.Contains(x.Id),
                                                                                     include : x => x
                                                                                     .Include(z => z.Followings),
                                                                                     pageIndex : pageIndex);

            return(followingsList);
        }