Esempio n. 1
0
        public async Task <ActionResult> ReadyForApproval(string hashedAccountId)
        {
            if (!await IsUserRoleAuthorized(hashedAccountId, Role.Owner, Role.Transactor))
            {
                return(View("AccessDenied"));
            }

            var model = await _employerCommitmentsOrchestrator.GetAllReadyForApproval(hashedAccountId, OwinWrapper.GetClaimValue(@"sub"));

            SetFlashMessageOnModel(model);
            Session[LastCohortPageSessionKey] = RequestStatus.ReadyForApproval;
            return(View("RequestList", model));
        }