Пример #1
0
        public async Task <IActionResult> EnterBankDetails(string accountId, Guid applicationId)
        {
            var confirmationActionUrl = Url.Action("Confirmation", "ApplicationComplete", new { accountId, applicationId });
            var returnUrl             = $"{Request.Scheme}://{Request.Host}{Request.PathBase}{confirmationActionUrl}";
            var application           = await _applicationService.Get(accountId, applicationId, includeApprenticeships : false, includeSubmitted : true);

            var achieveServiceUrl = await _verificationService.BuildAchieveServiceUrl(accountId, application.AccountLegalEntityId, applicationId, returnUrl);

            return(Redirect(achieveServiceUrl));
        }