public ActionResult Details(Position position) { try { _iFPosition.Update(position); return(RedirectToAction("Index")); } catch (Exception ex) { return(View()); } }
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 }
public ActionResult Update(Position position) { return(View(_iFPosition.Update(position))); }