public ActionResult Details(Position position)
 {
     try
     {
         _iFPosition.Update(position);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(View());
     }
 }
예제 #2
0
 public ActionResult Update(Position position)
 {
     _iFExamPosition.Delete(position.PositionId);
     _iFExamPosition.Create(position.PositionId, position.ExamPositions.ToList());
     _iFPosition.Update(position);
     return(RedirectToAction("Update", new { id = position.PositionId })); //Nagiging post ung refresh pag ung code kanina
 }
예제 #3
0
 public ActionResult Update(Position position)
 {
     return(View(_iFPosition.Update(position)));
 }