private async Task <IActionResult> DisplayNewAgreementRequiredShutterPage(EmploymentStartDatesRequest request) { var legalEntityName = await GetLegalEntityName(request.AccountId, request.AccountLegalEntityId); var viewModel = new NewAgreementRequiredViewModel(legalEntityName, request.AccountId, request.ApplicationId, _configuration.ManageApprenticeshipSiteUrl); return(View("NewAgreementRequired", viewModel)); }
public async Task <IActionResult> NewAgreementRequired(string accountId, Guid applicationId) { var application = await _applicationService.Get(accountId, applicationId, includeApprenticeships : false); var legalEntityName = await GetLegalEntityName(accountId, application.AccountLegalEntityId); var viewModel = new NewAgreementRequiredViewModel(legalEntityName, accountId, applicationId, _configuration.ManageApprenticeshipSiteUrl); return(View(viewModel)); }