public async Task <ActionResult <Professor> > PostProfessor(ProfessorRequest professor) { if (await _professorService.CreateProfessorAsync(professor)) { return(CreatedAtAction("GetProfessor", new { cpf = professor.Cpf }, professor)); } return(StatusCode(500)); }