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