Exemple #1
0
        public async Task <ActionResult> ProcessReviewSelection(
            string updateChoice,
            string hashedAccountId,
            string accountLegalEntityPublicHashedId,
            string organisationName,
            string organisationAddress,
            string dataSourceFriendlyName)
        {
            switch (updateChoice)
            {
            case "update":

                var userId = OwinWrapper.GetClaimValue(ControllerConstants.UserRefClaimKeyName);

                var response = await _orchestrator.UpdateOrganisation(
                    accountLegalEntityPublicHashedId,
                    organisationName,
                    organisationAddress, hashedAccountId, userId);

                return(View(ControllerConstants.OrganisationUpdatedNextStepsActionName, response));

            case "incorrectDetails":
                return(View("ReviewIncorrectDetails", new IncorrectOrganisationDetailsViewModel {
                    DataSourceFriendlyName = dataSourceFriendlyName
                }));
            }

            return(RedirectToAction("Details", "EmployerAgreement"));
        }