Exemplo n.º 1
0
        public IActionResult Get()
        {
            IEnumerable <Teacher> myTeachers = _repo.Get();
            var myResponse = _mapper.Map <IEnumerable <TeacherDto> >(myTeachers);

            return(Ok(myResponse));
        }
Exemplo n.º 2
0
 public Teacher GetById(long id)
 {
     return(iTeacher.Get(id));
 }