Ejemplo n.º 1
0
        public IEnumerable <Instructor> GetByCourse(int courseId)
        {
            var course      = _courseRepository.GetById(courseId);
            var instructors = _instructorRepository.GetMany(i => i.Courses.Contains(course));

            return(instructors);
        }
Ejemplo n.º 2
0
 //get instructors by last name
 public IEnumerable <Instructor> GetInstructorByName(string FirstName, string LastName)
 {
     return(_instructorRepository.GetMany(i => i.LastName == LastName && i.FirstName == FirstName));
 }
Ejemplo n.º 3
0
 public IEnumerable <Instructor> GetInstructorByName(string name)
 {
     return(_instructorRepository.GetMany(i => i.LastName.Contains(name) || i.FirstName.Contains(name)).ToList());
 }