예제 #1
0
        private async Task <PollVotingResultModel> GetOptionsAndVotesFromDatabaseAndAddToModel(int pollId, PollVotingResultModel pollResults)
        {
            var tempOptions = await _optionRepo.GetPollOptionsForDisplay(pollId);

            if (tempOptions != null)
            {
                pollResults = await AddOptionsAndVotesToModel(pollResults, tempOptions);
            }

            return(pollResults);
        }
예제 #2
0
 public Task <List <PollOptionModel> > GetPollOptionsForDisplay(int pollId)
 {
     return(_optionRepo.GetPollOptionsForDisplay(pollId));
 }