public async Task <ActionResult> SelectLegalEntity(string hashedAccountId, string cohortRef = "") { if (!await IsUserRoleAuthorized(hashedAccountId, Role.Owner, Role.Transactor)) { return(View("AccessDenied")); } var response = await _employerCommitmentsOrchestrator .GetLegalEntities(hashedAccountId, cohortRef, OwinWrapper.GetClaimValue(@"sub")); return(View(response)); }