Пример #1
0
        public VoteStatisticsViewModel GetVoteOnResolutionStatistics(string resolutionId)
        {
            VoteStatisticsViewModel voteStatisticsViewModel = new VoteStatisticsViewModel
            {
                VoteQuantity        = _context.GetVotesQuantity(resolutionId),
                ArrayWithStatistics = _context.GetQuantityOfConcreteOptions(resolutionId)
            };

            voteStatisticsViewModel.NoVoteQuantity = _context.GetNoVotesQuantity(voteStatisticsViewModel.VoteQuantity);
            voteStatisticsViewModel.UsersData      = _context.GetUsersWithLackOfVoteBasicCredentials(resolutionId);

            return(voteStatisticsViewModel);
        }