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