public async Task <ActionResult> Index(string hashedAccountId, bool agreementSigned = false)
        {
            var model = await _orchestrator.Get(hashedAccountId,
                                                OwinWrapper.GetClaimValue(ControllerConstants.UserRefClaimKeyName));

            var flashMessage = GetFlashMessageViewModelFromCookie();

            if (flashMessage != null)
            {
                model.FlashMessage = flashMessage;
            }

            ViewBag.ShowConfirmation = agreementSigned && model.Data.EmployerAgreementsData.HasPendingAgreements;

            return(View(model));
        }
        public async Task <ActionResult> Index(string hashedAccountId)
        {
            var model = await _orchestrator.Get(hashedAccountId, OwinWrapper.GetClaimValue(@"sub"));

            var flashMessage = GetFlashMessageViewModelFromCookie();

            if (flashMessage != null)
            {
                model.FlashMessage = flashMessage;
            }

            return(View(model));
        }