예제 #1
0
        public async Task <IActionResult> GetTeacherList()
        {
            IEnumerable <TeacherData> result = await _teacherGateway.GetAll();

            return(Ok(result));
        }
        public async Task <IActionResult> GetTeacherList()
        {
            var result = await _teacherGateway.GetAll();

            return(Ok(result));
        }
예제 #3
0
 public Result <IEnumerable <Teacher> > GetAll()
 {
     return(Result.Success(Status.Ok, _teacherGateway.GetAll()));
 }
 public List <Models.Teacher> GetAll()
 {
     return(teacherGateway.GetAll());
 }