public string Post([FromBody] Extracode5 extracode5) { //Create db.Extracode5.Add(extracode5); db.SaveChanges(); return(JsonConvert.SerializeObject(extracode5)); }
public string Delete([FromBody] Extracode5 extracode5) { db.Extracode5.Remove(extracode5); db.SaveChanges(); return(JsonConvert.SerializeObject("Ok")); }
public void Put(int id, [FromBody] Extracode5 extracode5) { //Update db.Extracode5.Update(extracode5); db.SaveChanges(); }