public ActionResult Create(Position position) { var positionCreated = _iFPosition.Create(position); _iFExamPosition.Create(positionCreated.PositionId, position.ExamPositions.ToList()); return(RedirectToAction("Update", new { id = positionCreated.PositionId })); }
public JsonResult Create(Position position) { try { position = _iFPosition.Create(position); return(Json("")); } catch (Exception ex) { return(Json(ex)); } }
public ActionResult Create(Position position) { position = _iFPosition.Create(position); return(RedirectToAction("Update", new { id = position.PositionId })); }