public async Task <IActionResult> ErrorVoting(int id) { PollFlexibleModel displayModel = await _modelPopulator.PopulatePollName(id); displayModel.RedirectingUrl = _urlGenerator.GetVotingPageUrl(id, Url, _httpContextAccessor); return(View(displayModel)); }
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)); }