public ActionResult <IEnumerable <TeacherReadDto> > SearchStudents(string key) { var StudentItems = _repo.SearchTeachers(key); return(Ok(_mapper.Map <IEnumerable <StudentReadDto> >(StudentItems))); }
public ActionResult <IEnumerable <TeacherReadDto> > SearchStudents(string key) { var StudentItems = _repo.SearchTeachers(key); return(Ok(_mapper.Map <IEnumerable <StudentReadDto> >(StudentItems))); }