public IActionResult UpdateForm(Article article) { if (article == null) { return(NotFound("Something went wrong")); } _articleRepo.Update(article); _articleRepo.Save(); return(RedirectToAction("Index", "Home")); }
public IActionResult UpdateForm(Article article) { if (article == null) { return(NotFound("Something went wrong")); } _articleRepo.Update(article); _articleRepo.Save(); return(RedirectToAction("Index", "Home")); }