public void DeleteInstructor(int id) { InstructorRepository instructorRepository = new InstructorRepository(); Instructor obj = instructorRepository.PrintOne(id); instructorRepository.Delete(obj); }
public void AddDepartments(Departments entity) { DepartmentsRepository departmentsRepository = new DepartmentsRepository(); InstructorRepository instructorRepository = new InstructorRepository(); Instructor instructor = instructorRepository.PrintOne(entity.InstructorID); entity.Instructor = instructor; departmentsRepository.Add(entity); }
public Instructor GetOneInstructor(int id) { InstructorRepository instructorRepository = new InstructorRepository(); return(instructorRepository.PrintOne(id)); }