Example #1
0
        public Candidate AddCandidateToPoll(long pollId, string name)
        {
            IKey assetId = _identityKeyProvider.GetKey(ConfidentialAssetsHelper.GetRandomSeed());

            var id = _dataAccessService.AddCandidateToPoll(pollId, name, assetId.ToString());

            return(_translatorsRepository.GetInstance <EcCandidateRecord, Candidate>().Translate(_dataAccessService.GetCandidateRecord(id)));
        }