public ActionResult Edit(Category category, ArticleEdit articleEdit) { if (ModelState.IsValid) { Article article = articlesRepository.Articles.Find(articleEdit.Id); article.InjectFrom(articleEdit); articlesRepository.Entry(article).State = EntityState.Modified; articlesRepository.SaveChanges(); return(RedirectToAction("Index", new { category })); } return(View(articleEdit)); }