public void AddSemester(Semesters entityToAdd) { ISemestersRepository repo = new SemestersRepository(getEntities()); Entities.Semesters entityToAdd2 = Mapper.Map <Semesters, Entities.Semesters>(entityToAdd); repo.Add(entityToAdd2); }
public void RemoveSemester(Semesters entityToRemove) { ISemestersRepository repo = new SemestersRepository(getEntities()); Entities.Semesters entityToRemove2 = Mapper.Map <Semesters, Entities.Semesters>(entityToRemove); repo.Remove(entityToRemove2); }
public int GetIdOfSemester(Semesters entityToGetId) { ISemestersRepository repo = new SemestersRepository(getEntities()); Entities.Semesters entityToGetId2 = Mapper.Map <Semesters, Entities.Semesters>(entityToGetId); return(repo.GetSemesterId(entityToGetId2)); }
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); }