public IActionResult GetActive() { IEnumerable <Teacher> myTeachers = _repo.GetByStatus(true); var myResponse = _mapper.Map <IEnumerable <TeacherDto> >(myTeachers); return(Ok(myResponse)); }