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