public void DeleteInstructor(int id) { InstructorRepository instructorRepository = new InstructorRepository(); Instructor obj = instructorRepository.GetByID(id); instructorRepository.Delete(obj); }
public Instructor GetOneInstructor(int id) { InstructorRepository instructorRepository = new InstructorRepository(); return(instructorRepository.GetByID(id)); }