Exemplo n.º 1
0
        public IActionResult GetTeacherById(int Id)
        {
            if (Id < 0)
            {
                BadRequest();
            }
            var teacher = _teacherRepo.GetTeacherById(Id);

            return(Ok(teacher));
        }
Exemplo n.º 2
0
        public Teacher GetTeacherById(int?id)
        {
            var teacherid = iteacher.GetTeacherById(id);

            return(teacherid);
        }