public async Task <IActionResult> GetTeacher(string id) { var teacher = await teachersService.GetAsync(id); if (teacher == null) { return(NotFound()); } return(Ok(teacher)); }