Add handling PDF, Puzzle and Agenda subsection type

This commit is contained in:
Thomas Fransolet 2023-12-26 15:49:57 +01:00
parent ab562f886c
commit 53cf5509d4

View File

@ -420,6 +420,18 @@ namespace ManagerService.Controllers
section.Data = JsonConvert.SerializeObject(articleDTO); // Include all info from specific section as JSON
break;
case SectionType.PDF:
PdfDTO pdfDTO = new PdfDTO();
section.Data = JsonConvert.SerializeObject(pdfDTO); // Include all info from specific section as JSON
break;
case SectionType.Puzzle:
PuzzleDTO puzzleDTO = new PuzzleDTO();
section.Data = JsonConvert.SerializeObject(puzzleDTO); // Include all info from specific section as JSON
break;
case SectionType.Agenda:
AgendaDTO agendaDTO = new AgendaDTO();
section.Data = JsonConvert.SerializeObject(agendaDTO); // Include all info from specific section as JSON
break;
}
Section sectionCreated = _sectionService.Create(section);