public ActionResult Delete(int id) { var athleteclass = AthleteClassModel.GetById(id); athleteclass.Delete(); return RedirectToAction("Index"); }