Exemplo n.º 1
0
 public async Task <ActionResult <List <ContentSectionViewModel> > > GetContentSections(
     Guid methodologyId,
     [FromQuery] MethodologyContentService.ContentListType type)
 {
     return(await _contentService
            .GetContentSectionsAsync(methodologyId, type)
            .HandleFailuresOrOk());
 }
Exemplo n.º 2
0
 public async Task <ActionResult <ContentSectionViewModel> > AddContentSection(
     Guid methodologyId,
     [FromQuery] MethodologyContentService.ContentListType type,
     AddContentSectionRequest request = null)
 {
     return(await _contentService
            .AddContentSectionAsync(methodologyId, request, type)
            .HandleFailuresOrOk());
 }