예제 #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();
 }