public Instructor GetById(int id) { return(repo.GetInstructorById(id)); }
// Helper Method to get instructors by their unique identifier private Instructor GetInstructorById(int id) { return(InstructorRepository.GetInstructorById(id)); }
public ActionResult Get(int id) { return(Ok(repo.GetInstructorById(id))); }