예제 #1
0
 // POST api/<controller>
 public void Post([FromBody] PlayList playList)
 {
     context.PlayLists.Add(playList);
     context.SaveChanges();
 }
예제 #2
0
 // POST api/<controller>
 public void Post([FromBody] KTask task)
 {
     context.Tasks.Add(task);
     context.SaveChanges();
 }
예제 #3
0
 // POST api/<controller>
 public void Post([FromBody] Container container)
 {
     context.Containers.Add(container);
     context.SaveChanges();
 }