예제 #1
0
 // PUT api/<controller>/5
 public void Put(int id, [FromBody] PlayList playList)
 {
     context.Entry(playList).State = System.Data.Entity.EntityState.Modified;
     context.SaveChanges();
 }
예제 #2
0
 // PUT api/<controller>/5
 public void Put(int id, [FromBody] KTask task)
 {
     context.Entry(task).State = System.Data.Entity.EntityState.Modified;
     context.SaveChanges();
 }
예제 #3
0
 // PUT api/<controller>/5
 public void Put(int id, [FromBody] Container container)
 {
     context.Entry(container).State = System.Data.Entity.EntityState.Modified;
     context.SaveChanges();
 }