DeleteFromDb() public method

Deletes the given athlete.
public DeleteFromDb ( ) : void
return void
Exemplo n.º 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");
 }