DeleteFromDb() 공개 메소드

Deletes the given athlete.
public DeleteFromDb ( ) : void
리턴 void
예제 #1
0
 public ActionResult DeleteAthlete(string ddAthlete)
 {
     int Id = 0;
     int.TryParse(ddAthlete, out Id);
     AthleteModel athlete = new AthleteModel(Id);
     athlete.DeleteFromDb();
     return RedirectToAction("ResetDeleteFormField");
 }