public async Task <InstructorWithCoursesOut> GetInstructorWithCourses(int id)
        {
            var instructorWithCourses = await _unitOfWork.Instructors.GetInstructorWithCourses(id);

            return(DTOAssemblerFactory <InstructorWithCoursesOut, Instructor> .CreateAssembler().AssembleDTO(instructorWithCourses));
        }
        public async Task <IEnumerable <InstructorWithCoursesOut> > GetInstructorsWithCourses()
        {
            var instructorsWithCourses = await _unitOfWork.Instructors.GetInstructorsWithCourses();

            return(DTOAssemblerFactory <IEnumerable <InstructorWithCoursesOut>, IEnumerable <Instructor> > .CreateAssembler().AssembleDTO(instructorsWithCourses));
        }
        public async Task <IEnumerable <InstructorOut> > GetAllInstructors()
        {
            var instructors = await _unitOfWork.Instructors.GetAll();

            return(DTOAssemblerFactory <IEnumerable <InstructorOut>, IEnumerable <Instructor> > .CreateAssembler().AssembleDTO(instructors));
        }