public async Task <IActionResult> ActiveSequence(Guid applicationId, BackViewModel backViewModel) { var application = await _applyApiClient.GetApplication(applicationId); var organisation = await _apiClient.GetOrganisation(application.OrganisationId); var activeApplySequence = application.ApplyData.Sequences.Where(seq => seq.IsActive && !seq.NotRequired).OrderBy(seq => seq.SequenceNo).FirstOrDefault(); var sequence = await _qnaApiClient.GetSequence(application.ApplicationId, activeApplySequence.SequenceId); var sections = await _qnaApiClient.GetSections(application.ApplicationId, sequence.Id); var sequenceVm = new SequenceViewModel(application, organisation, sequence, sections, activeApplySequence.Sections, backViewModel.BackAction, backViewModel.BackController, backViewModel.BackOrganisationId); return(View(nameof(Sequence), sequenceVm)); }