Пример #1
0
        public async Task <ActionResult <IList <ThemeDto> > > PostThemes(CreateThemeDto addThemeModel)
        {
            var themeResult = await _themeService.CreateThemeAsync(addThemeModel);

            return(Ok(themeResult));
        }
Пример #2
0
        public async Task <ActionResult <IList <ThemeDto> > > PostThemes([FromBody] CreateThemeDto addThemeModel)
        {
            var themeResult = await _themeService.CreateThemeAsync(addThemeModel);

            return(themeResult.ToActionResult());
        }