示例#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)));
 }