public HttpResponseMessage AddLicencie([FromBody] Licencie l) { ContactDAO dao = new ContactDAO(); dao.AddLicencie(l.Id, l.Nom, l.Prenom, l.Email, l.Tel, l.Mdp); if (l != null) { return(Request.CreateResponse(HttpStatusCode.Created, l)); } else { return(Request.CreateResponse(HttpStatusCode.BadRequest, l)); } }