자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> PostTeacher([FromBody] TeacherDto teacherDto) { if (teacherDto == null) { return(BadRequest("Teacher is null!")); } var result = await teachersService.CreateAsync(teacherDto); return(Created(new Uri("https://localhost:4"), result)); }