Example #1
0
        public async Task DeleteAsync(string projectId, string participantId, string voterId)
        {
            var partitionKey = ProjectResultVoteEntity.GeneratePartitionKey(projectId);
            var rowKey       = ProjectResultVoteEntity.GenerateRowKey(participantId, voterId);

            await _projectResultVoteTableStorage.DeleteAsync(partitionKey, rowKey);
        }
Example #2
0
        public async Task <IProjectResultVoteData> GetAsync(string projectId, string participantId, string voterId)
        {
            var partitionKey = ProjectResultVoteEntity.GeneratePartitionKey(projectId);
            var rowKey       = ProjectResultVoteEntity.GenerateRowKey(participantId, voterId);

            return(await _projectResultVoteTableStorage.GetDataAsync(partitionKey, rowKey));
        }