Add handling PDF, Puzzle and Agenda subsection type
This commit is contained in:
parent
ab562f886c
commit
53cf5509d4
@ -420,6 +420,18 @@ namespace ManagerService.Controllers
|
|||||||
|
|
||||||
section.Data = JsonConvert.SerializeObject(articleDTO); // Include all info from specific section as JSON
|
section.Data = JsonConvert.SerializeObject(articleDTO); // Include all info from specific section as JSON
|
||||||
break;
|
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);
|
Section sectionCreated = _sectionService.Create(section);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user