public ActionResult DeletePost(int id) { var service = new CatService(); service.DeleteCat(id); TempData["SaveResult"] = "Cat deleted."; return(RedirectToAction("Index")); }