public ActionResult DeleteConfirmed(int id) { var catalogManager = new CatalogManager(); Catalog catalog = catalogManager.GetCatalogById(id); catalogManager.DeleteAndSave(catalog); return(RedirectToAction("Index")); }