public async Task <ActionResult <IList <ThemeDto> > > PostThemes(CreateThemeDto addThemeModel) { var themeResult = await _themeService.CreateThemeAsync(addThemeModel); return(Ok(themeResult)); }
public async Task <ActionResult <IList <ThemeDto> > > PostThemes([FromBody] CreateThemeDto addThemeModel) { var themeResult = await _themeService.CreateThemeAsync(addThemeModel); return(themeResult.ToActionResult()); }