Example #1
0
        public void AddSemester(Semesters entityToAdd)
        {
            ISemestersRepository repo = new SemestersRepository(getEntities());

            Entities.Semesters entityToAdd2 = Mapper.Map <Semesters, Entities.Semesters>(entityToAdd);
            repo.Add(entityToAdd2);
        }
Example #2
0
        public void RemoveSemester(Semesters entityToRemove)
        {
            ISemestersRepository repo = new SemestersRepository(getEntities());

            Entities.Semesters entityToRemove2 = Mapper.Map <Semesters, Entities.Semesters>(entityToRemove);
            repo.Remove(entityToRemove2);
        }
Example #3
0
        public int GetIdOfSemester(Semesters entityToGetId)
        {
            ISemestersRepository repo = new SemestersRepository(getEntities());

            Entities.Semesters entityToGetId2 = Mapper.Map <Semesters, Entities.Semesters>(entityToGetId);
            return(repo.GetSemesterId(entityToGetId2));
        }
Example #4
0
        public Semesters GetSemesterById(int entityToGetById)
        {
            ISemestersRepository repo = new SemestersRepository(getEntities());

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

            return(returnedValue2);
        }