public async Task <IActionResult> PostAluno([FromRoute] Guid escolaId, [FromBody] AlunoDTO aluno) { return(Created("api/v1/escolas/{escolaId}/alunos", await _alunoService.AddAsync(_alunoDTOToAlunoMapper.Map(aluno), escolaId))); }
public async Task <IActionResult> PostAluno([FromRoute] Guid escolaId, [FromBody] AlunoDTO aluno) { return(Created("api/v1/escolas/{escolaId}/alunos", await _alunoService.AddAsync(_alunoDTOToAlunoMapper.Map(aluno), escolaId))); }