// [ValidateAntiForgeryToken] public IActionResult Create(Article article, List <string> roles) { if (article.Id == 0) { _allArticles.AddArticles(article, roles); } else { _allArticles.UpdateArticle(article, roles); } return(Ok(article)); }
// [ValidateAntiForgeryToken] public IActionResult Create(Article article, List <string> roles) { if (article.Id == 0) { _allArticles.AddArticles(article, roles); } else { _allArticles.UpdateArticle(article, roles); } return(Ok(article)); }