//-------------------------------------------------------------------------------------------------

        public Result VoteToIdea(int ideaId, VoteDetailDto voteDetailDto)
        {
            if (voteDetailDto.Vote > 1)
            {
                voteDetailDto.Vote = 2;
            }
            else
            {
                voteDetailDto.Vote = 1;
            }
            if (_repositoryUsers.IsCommitteMember(voteDetailDto.COMMITTEE_MEMBER_USER_NAME))
            {
                return(_repository.VoteToIdea(ideaId, voteDetailDto));
            }
            else
            {
                return(new Result()
                {
                    value = false,
                    content = "متاسفانه شما به این امکان دسترسی ندارید"
                });
            }
        }
        //-------------------------------------------------------------------------------------------------

        public Result VoteToIdea(int ideaId, VoteDetailDto voteDetailDto, string username)
        {
            if (voteDetailDto.Vote > 1)
            {
                voteDetailDto.Vote = 2;
            }
            else
            {
                voteDetailDto.Vote = 1;
            }
            if (_repositoryUsers.IsCommitteMember(username))
            {
                return(_repository.VoteToIdea(ideaId, voteDetailDto, username));
            }
            else
            {
                return(new Result()
                {
                    Value = false,
                    Content = "متاسفانه شما به این امکان دسترسی ندارید"
                });
            }
        }