Beispiel #1
0
        public ExamSet Create(ExamSet examSet)
        {
            EExamSet eExamSet = EExamSet(examSet);

            eExamSet = _iDExamSet.Create(eExamSet);
            return(ExamSet(eExamSet));
        }
Beispiel #2
0
        private ExamSet ExamSet(EExamSet eExamSet)
        {
            ExamSet returnExamSet = new ExamSet
            {
                ExamSetId  = eExamSet.ExamSetId,
                PositionId = eExamSet.PositionId,

                Description = eExamSet.Description,
            };

            return(returnExamSet);
        }
Beispiel #3
0
        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);
     //}
 }
Beispiel #5
0
 public void Delete(ExamSet ExamSet)
 {
     _iDExamSet.Delete(EExamSet(ExamSet));
 }
Beispiel #6
0
        //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 }));
 }