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)); }
public Result <IEnumerable <Teacher> > GetAll() { return(Result.Success(Status.Ok, _teacherGateway.GetAll())); }
public List <Models.Teacher> GetAll() { return(teacherGateway.GetAll()); }