Esempio n. 1
0
        // public GalleryCard(IAvatarData avatarDb)
        // {
        //     this.avatarDb = avatarDb;
        // }


        // public int GetVotes()
        // {
        //     IAvatarData avatarDB = new AvatarData();
        //     var count = avatarDB.GetAllVotesForCard(this.Id);
        //     return count;
        // }

        // Get comments for each GalleryCard ID
        public IEnumerable <Comment> GetComments()
        {
            ICommentData commentData = new CommentData();
            var          comments    = commentData.GetCommentsForEntity(this.Id);

            return(comments);
        }