public ExamSet Create(ExamSet examSet) { EExamSet eExamSet = EExamSet(examSet); eExamSet = _iDExamSet.Create(eExamSet); return(ExamSet(eExamSet)); }
private ExamSet ExamSet(EExamSet eExamSet) { ExamSet returnExamSet = new ExamSet { ExamSetId = eExamSet.ExamSetId, PositionId = eExamSet.PositionId, Description = eExamSet.Description, }; return(returnExamSet); }
private EExamSet EExamSet(ExamSet ExamSet) { EExamSet returnEExamSet = new EExamSet { ExamSetId = ExamSet.ExamSetId, PositionId = ExamSet.PositionId, Description = ExamSet.Description, }; return returnEExamSet; }
public JsonResult Delete(ExamSet examSet) { //try //{ _iFExamSet.Delete(examSet); return(Json(string.Empty)); //} //catch (System.Exception ex) //{ // return Json(ex); //} }
public void Delete(ExamSet ExamSet) { _iDExamSet.Delete(EExamSet(ExamSet)); }
//public List<ExamSet> ReadExamSetForPosition(int positionId) //{ // List<EExamSet> eExamSets = _iDExamSet.List<EExamSet>(a => a.ExamPositions.Any(b => b.PositionId == positionId)); // return ExamSets(eExamSets); //} #endregion #region UPDATE public ExamSet Update(ExamSet examSet) { var eExamSet = _iDExamSet.Update(EExamSet(examSet)); return(ExamSet(eExamSet)); }
public ActionResult Update(ExamSet examSet) { return(View(_iFExamSet.Update(examSet))); }
public ActionResult Create(ExamSet examSet) { examSet = _iFExamSet.Create(examSet); return(RedirectToAction("Update", new { id = examSet.ExamSetId })); }