public async Task <IActionResult> Confirmation(Guid uniqueCode) { var answers = await _sessionService.Get <SurveyModel>(uniqueCode.ToString()); answers.Submitted = true; await _orchestrator.SubmitConfirmedEmployerFeedback(answers, uniqueCode); await _sessionService.Set(uniqueCode.ToString(), answers); return(RedirectToRoute(RouteNames.Confirmation_Get)); }
public async Task <IActionResult> Confirmation(Guid uniqueCode) { var idClaim = HttpContext.User.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier); var answers = await _sessionService.Get <SurveyModel>(idClaim.Value); answers.Submitted = true; await _orchestrator.SubmitConfirmedEmployerFeedback(answers /*, uniqueCode*/); await _sessionService.Set(idClaim.Value, answers); return(RedirectToRoute(RouteNames.Confirmation_Get)); }