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