Exemplo n.º 1
0
 public ActionResult Edit(int id, FormCollection collection)
 {
     try
     {
         // TODO: Add update logic here
         var model = TrainingEvaluation.GetById(id);
         TryUpdateModel(model);
         model.SaveOrUpDate();
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }
Exemplo n.º 2
0
 // GET: TrainingEvaluation/Edit/5
 public ActionResult Edit(int id)
 {
     return(View(TrainingEvaluation.GetById(id)));
 }