Ejemplo n.º 1
0
        public async Task <ActionResult <ProfessorResponse> > GetProfessor(string cpf)
        {
            var professor = await _professorService.GetProfessorAsync(cpf);

            if (professor == null)
            {
                return(NotFound());
            }

            return(professor);
        }