Exemplo n.º 1
0
 public string Post([FromBody] Conceptuals conceptuals)
 {
     //Create
     db.Conceptuals.Add(conceptuals);
     db.SaveChanges();
     return(JsonConvert.SerializeObject(conceptuals));
 }
Exemplo n.º 2
0
 public string Delete([FromBody] Conceptuals conceptuals)
 {
     db.Conceptuals.Remove(conceptuals);
     db.SaveChanges();
     return(JsonConvert.SerializeObject("Ok"));
 }
Exemplo n.º 3
0
 public void Put(int id, [FromBody] Conceptuals conceptuals)
 {
     //Update
     db.Conceptuals.Update(conceptuals);
     db.SaveChanges();
 }