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