Exemple #1
0
        public async Task <IActionResult> ErrorVoting(int id)
        {
            PollFlexibleModel displayModel = await _modelPopulator.PopulatePollName(id);

            displayModel.RedirectingUrl = _urlGenerator.GetVotingPageUrl(id, Url, _httpContextAccessor);

            return(View(displayModel));
        }
Exemple #2
0
        public async Task <IActionResult> Done(PollFlexibleModel pollFullModel)
        {
            int id = pollFullModel.Poll.Id;

            PollFlexibleModel displayModel = await _modelPopulator.PopulatePollAndOptionsForDisplay(id);

            displayModel.RedirectingUrl = _urlGenerator.GetVotingPageUrl(id, Url, _httpContextAccessor);

            return(View(displayModel));
        }