public void RemoveExam(Exams entityToRemove) { IExamsRepository repo = new ExamsRepository(getEntities()); Entities.Exams entityToRemove2 = Mapper.Map <Exams, Entities.Exams>(entityToRemove); repo.Remove(entityToRemove2); }
public int GetIdOfExam(Exams entityToGetId) { IExamsRepository repo = new ExamsRepository(getEntities()); Entities.Exams entityToGetId2 = Mapper.Map <Exams, Entities.Exams>(entityToGetId); return(repo.GetExamId(entityToGetId2)); }
public void AddExam(Exams entityToAdd) { IExamsRepository repo = new ExamsRepository(getEntities()); Entities.Exams entityToAdd2 = Mapper.Map <Exams, Entities.Exams>(entityToAdd); repo.Add(entityToAdd2); }
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); }