public async Task <ActionResult> WaitingToBeSent(string hashedAccountId) { if (!await IsUserRoleAuthorized(hashedAccountId, Role.Owner, Role.Transactor)) { return(View("AccessDenied")); } var model = await _employerCommitmentsOrchestrator.GetAllWaitingToBeSent(hashedAccountId, OwinWrapper.GetClaimValue(@"sub")); SetFlashMessageOnModel(model); Session[LastCohortPageSessionKey] = RequestStatus.NewRequest; return(View("RequestList", model)); }