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