Example #1
0
        public async Task <IActionResult> AddArticle(ArticleModel article)
        {
            ArticleInfoModel    articleInfo    = article.ToArticleInfoModel();
            ArticleContentModel articleContent = article.ToArticleContentModel();
            await _articleService.AddArticleAsync(articleInfo, articleContent);

            return(Ok());
        }