ITimeU.Controllers.AthleteController.DeleteAthlete C# (CSharp) Method

DeleteAthlete() public method

public DeleteAthlete ( string ddAthlete ) : System.Web.Mvc.ActionResult
ddAthlete string
return System.Web.Mvc.ActionResult
        public ActionResult DeleteAthlete(string ddAthlete)
        {
            int Id = 0;
            int.TryParse(ddAthlete, out Id);
            AthleteModel athlete = new AthleteModel(Id);
            athlete.DeleteFromDb();
            return RedirectToAction("ResetDeleteFormField");
        }