Esempio n. 1
0
        public IHttpActionResult Create([FromBody] Reponse reponse)
        {
            var reponseToAdd = new FR_DataAccessLayer.Models.Reponse
            {
                Libelle = reponse.Libelle
            };

            reponseAccessLayer.Add(reponseToAdd);
            return(this.Ok("created"));
        }
Esempio n. 2
0
        public IHttpActionResult Update(int id, [FromBody] Reponse reponse)
        {
            var reponseToUpdate = new FR_DataAccessLayer.Models.Reponse
            {
                Libelle   = reponse.Libelle,
                ReponseId = reponse.ReponseId
            };

            reponseAccessLayer.Update(reponseToUpdate);

            return(this.Ok("updated"));
        }