public ActionResult DeleteConfirmed(int id) { Category category = db.Category.Find(id); db.Category.Remove(category); db.SaveChanges(); return RedirectToAction("Index"); }