public Track CreateTrack(string name, string fileUrl)
 {
     Track track = new Track(name, fileUrl);
     db.Tracks.Add(track);
     db.SaveChanges();
     return track;
 }
Пример #2
0
 public void CreateTrack(string name, string fileUrl)
 {
     Track track = new Track(name, fileUrl);
     db.Tracks.Add(track);
     db.SaveChanges();
 }