public Track CreateTrack(string name, string fileUrl) { Track track = new Track(name, fileUrl); db.Tracks.Add(track); db.SaveChanges(); return track; }
public void CreateTrack(string name, string fileUrl) { Track track = new Track(name, fileUrl); db.Tracks.Add(track); db.SaveChanges(); }