// GET: Instructors
        public async Task <IActionResult> Index()
        {
            var instructors = await _instructorsService.GetAllInstructorsAsync();

            var model = _mapper.Map <IEnumerable <InstructorDTO> >(instructors);

            return(View(model));
        }
        public async Task <IActionResult> GetInstructors()
        {
            var response = await _instructorsService.GetAllInstructorsAsync();

            return(Ok(response));
        }