Example #1
0
        public void RemoveExam(Exams entityToRemove)
        {
            IExamsRepository repo = new ExamsRepository(getEntities());

            Entities.Exams entityToRemove2 = Mapper.Map <Exams, Entities.Exams>(entityToRemove);
            repo.Remove(entityToRemove2);
        }
Example #2
0
        public int GetIdOfExam(Exams entityToGetId)
        {
            IExamsRepository repo = new ExamsRepository(getEntities());

            Entities.Exams entityToGetId2 = Mapper.Map <Exams, Entities.Exams>(entityToGetId);
            return(repo.GetExamId(entityToGetId2));
        }
Example #3
0
        public void AddExam(Exams entityToAdd)
        {
            IExamsRepository repo = new ExamsRepository(getEntities());

            Entities.Exams entityToAdd2 = Mapper.Map <Exams, Entities.Exams>(entityToAdd);
            repo.Add(entityToAdd2);
        }
Example #4
0
        public Exams GetExamById(int entityToGetById)
        {
            IExamsRepository repo = new ExamsRepository(getEntities());

            Entities.Exams returnedValue  = repo.GetById(entityToGetById);
            Exams          returnedValue2 = Mapper.Map <Entities.Exams, Exams>(returnedValue);

            return(returnedValue2);
        }