public IHttpActionResult Post(Etudiant etudiant) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var newEtudiant = dal.AddEtudiant(etudiant); return(Ok(newEtudiant)); }