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