public IHttpActionResult Get(int?id) // IHttpActionResult - Mais recomendado { //Precisa fazer match com o formato da rota if (!id.HasValue) { return(BadRequest()); } Aluno aluno = _repositorioAlunos.SelecionarPorId(id.Value); if (aluno == null) { return(NotFound()); } AlunoDTO alunoDTO = AutoMapperManager.Instance.Mapper.Map <Aluno, AlunoDTO>(aluno); return(Content(HttpStatusCode.OK, alunoDTO)); //Found é de erro e não de sucesso }