public IActionResult ListAllInstructors()
        {
            //List<Instructor> instructors = database.Instructors.Include(I => I.Department).ToList<Instructor>();
            List <Instructor> instructors = instructorRepositoryInterface.ListAllInstructors();


            return(View(instructors));
        }
Beispiel #2
0
        public IActionResult ListAllInstructors()
        {
            //List<Instructor> InstructorList =
            //instructorRepository.Instructors.Include(i => i.Department).ToList<Instructor>();

            List<Instructor> InstructorList =
                instructorRepositoryInterface.ListAllInstructors();

            return View(InstructorList);
        }// end of ListAllInstructors