public IActionResult Delete1(int id) { Article article = _articleRepo.GetArticleById(id); if (article == null) { return(NotFound("Something went wrong")); } _articleRepo.Delete(article); _articleRepo.Save(); return(RedirectToAction("Index", "Home")); }