示例#1
0
 public void Put(int id, [FromBody] Track track)
 {
     track.TrackId          = id;
     _db.Entry(track).State = EntityState.Modified;
     _db.SaveChanges();
 }
示例#2
0
 public void Put(int id, [FromBody] Lesson lesson)
 {
     lesson.LessonId         = id;
     _db.Entry(lesson).State = EntityState.Modified;
     _db.SaveChanges();
 }