Exemplo n.º 1
0
        public async Task ResetPagesComplete(Guid applicationId, string pageId)
        {
            const string entryPageForMainRoute       = RoatpWorkflowPageIds.ExperienceAndAccreditations.OfficeForStudents;
            const string entryPageForEmployerRoute   = RoatpWorkflowPageIds.ExperienceAndAccreditations.InitialTeacherTraining;
            const string entryPageForSupportingRoute = RoatpWorkflowPageIds.ExperienceAndAccreditations.SubcontractorDeclaration;

            var pageIdsToExcludeFromCompleteReset = new List <string>
            {
                entryPageForMainRoute,
                entryPageForEmployerRoute,
                entryPageForSupportingRoute
            };

            if (pageIdsToExcludeFromCompleteReset.Contains(pageId))
            {
                await _qnaApiClient.ResetCompleteFlag(applicationId,
                                                      RoatpWorkflowSequenceIds.YourOrganisation,
                                                      RoatpWorkflowSectionIds.YourOrganisation.ExperienceAndAccreditations,
                                                      pageIdsToExcludeFromCompleteReset);
            }
        }