Пример #1
0
        public IActionResult GetTeacherById(int Id)
        {
            if (Id < 0)
            {
                BadRequest();
            }
            var teacher = _teacherRepo.GetTeacherById(Id);

            return(Ok(teacher));
        }
Пример #2
0
        public Teacher GetTeacherById(int?id)
        {
            var teacherid = iteacher.GetTeacherById(id);

            return(teacherid);
        }