コード例 #1
0
        public async Task <IActionResult> GetTeacher(int id)
        {
            var result = await _TeacherBusiness.GetTeacher(id);

            if (result != null)
            {
                return(Ok(result));
            }

            return(NotFound());
        }
コード例 #2
0
 public TeacherModel GetTeacher(bool Gende_Teacher)
 {
     return(_teacherBusiness.GetTeacher(Gende_Teacher));
 }