public ActionResult DeleteConfirmed(int id) { activityRepository.Delete(id); activityRepository.Save(); return RedirectToAction("Index"); } }