public ActionResult Edit(int?ID) { if (ID == null) { return(RedirectToAction("Index")); } else { ViewBag.SportType = SPList(); ParticipantModel model = _participant.GetDetail(ID.Value); return(View(model)); } }
public ActionResult Edit(int?ID) { if (ID == null) { return(RedirectToAction("Index")); } else { ViewBag.SportType = SPList(); ParticipantModel model = _participant.GetDetail(ID.Value); return(View(model)); } }