public IHttpActionResult Post(AlunoDTO aluno) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } try { AlunoModel _aluno = new AlunoModel(); _aluno.InserirDB(aluno); return(Ok(_aluno.ListarAlunoDB())); } catch (Exception ex) { return(InternalServerError(ex)); } }