Ejemplo n.º 1
0
        public IEnumerable <UserViewModel> GetListUserLiked(string statusId)
        {
            var             listUserIdLiked = this.GetListUserIdLiked(statusId);
            IUserRepository userRepository  = new UserRepository(this._db);

            return(userRepository.GetRangeUser(listUserIdLiked));
        }
        public IEnumerable <UserViewModel> GetListUserLikedComment(string commentId)
        {
            var             listUserIdLikedComment = this.GetListUserIdLikedComment(commentId);
            IUserRepository userRepository         = new UserRepository(this._db);

            return(userRepository.GetRangeUser(listUserIdLikedComment));
        }
Ejemplo n.º 3
0
        private FriendSugestViewModel GetFriendSugest(IEnumerable <string> friendListId, string friendIdSugest)
        {
            IUserRepository userRepository = new UserRepository(this._db);

            var friendSugest = userRepository.GetUserById(friendIdSugest);

            var friendIdsMutual  = GetListFriendMutualByUserID(friendListId, friendIdSugest);
            var listFriendMutual = userRepository.GetRangeUser(friendIdsMutual);

            return(new FriendSugestViewModel
            {
                UserId = friendSugest.UserId,
                Displayname = friendSugest.Displayname,
                Avatar = friendSugest.Avatar,
                ListFriendMutual = listFriendMutual
            });
        }
Ejemplo n.º 4
0
        public IEnumerable <UserViewModel> GetFriendList(string userId)
        {
            var userRepository = new UserRepository(this._db);

            return(userRepository.GetRangeUser(this.GetFriendListId(userId)));
        }
 public IEnumerable<UserViewModel> GetListUserLikedComment(string commentId)
 {
     var listUserIdLikedComment = this.GetListUserIdLikedComment(commentId);
     IUserRepository userRepository = new UserRepository(this._db);
     return userRepository.GetRangeUser(listUserIdLikedComment);
 }
Ejemplo n.º 6
0
 public IEnumerable<UserViewModel> GetListUserLiked(string statusId)
 {
     var listUserIdLiked = this.GetListUserIdLiked(statusId);
     IUserRepository userRepository = new UserRepository(this._db);
     return userRepository.GetRangeUser(listUserIdLiked);
 }
Ejemplo n.º 7
0
 public IEnumerable<UserViewModel> GetFriendList(string userId)
 {
     var userRepository = new UserRepository(this._db);
     return userRepository.GetRangeUser(this.GetFriendListId(userId));
 }
Ejemplo n.º 8
0
        private FriendSugestViewModel GetFriendSugest(IEnumerable<string> friendListId, string friendIdSugest)
        {
            IUserRepository userRepository = new UserRepository(this._db);

            var friendSugest = userRepository.GetUserById(friendIdSugest);

            var friendIdsMutual = GetListFriendMutualByUserID(friendListId, friendIdSugest);
            var listFriendMutual = userRepository.GetRangeUser(friendIdsMutual);
            return new FriendSugestViewModel
            {
                UserId = friendSugest.UserId,
                Displayname = friendSugest.Displayname,
                Avatar = friendSugest.Avatar,
                ListFriendMutual = listFriendMutual
            };
        }