Ejemplo n.º 1
0
        public IActionResult AddArticleToCategory([FromBody] AddArticleToCategoryInputModel input, string id)
        {
            if (!input.IsValid())
            {
                return(BadRequest(input.ValidationMessage));
            }
            var article = _categoryAppService.AddArticle(input, id);

            return(Created($"/articles/{article.Id}", article));
        }