Пример #1
0
        private List <Voting> GetALLVoting(string userId)
        {
            var model = voteRepository.GetAllVoting();

            return(model.Where(post => post.Post.AuthorId.Equals(userId) && post.UserId != userId).ToList());
        }