Beispiel #1
0
        public ActionResult DeletePost(int id)
        {
            var service = new CatService();

            service.DeleteCat(id);
            TempData["SaveResult"] = "Cat deleted.";

            return(RedirectToAction("Index"));
        }