public IActionResult Create(Article article, int categoryId) { if (categoryId != 0) { article.Category = _categoryService.GetCategory(categoryId); } _newsService.CreateArticle(article); return(RedirectToAction("Index")); }