public async Task <ActionResult> ChoosePath(string hashedAccountId, string legalEntityCode, string providerId, string cohortRef) { if (!await IsUserRoleAuthorized(hashedAccountId, Role.Owner, Role.Transactor)) { return(View("AccessDenied")); } if (string.IsNullOrWhiteSpace(legalEntityCode) || string.IsNullOrWhiteSpace(providerId) || string.IsNullOrWhiteSpace(cohortRef)) { return(RedirectToAction("Inform", new { hashedAccountId })); } var model = await _employerCommitmentsOrchestrator.CreateSummary(hashedAccountId, legalEntityCode, providerId, cohortRef, OwinWrapper.GetClaimValue(@"sub")); return(View(model)); }