// PUT: api/Security/5 public void Put(int id, [FromBody] tblSecurity value) { using (var db = new EscaliDb()) { db.Securities.Attach(value); db.SaveChanges(); } }
// POST: api/Security public void Post([FromBody] tblSecurity value) { using (var db = new EscaliDb()) { db.Securities.Add(value); db.SaveChanges(); } }