/// <inheritdoc cref="IModelService.DeleteTrack"/> public void DeleteTrack(string trackId) { var track = TrackDao.ReadTrackById(trackId); if (track == null) { return; } var trackReference = track.TrackReference; SubFingerprintDao.DeleteSubFingerprintsByTrackReference(trackReference); TrackDao.DeleteTrack(trackReference); }
public int DeleteTrack(string trackId) { var track = TrackDao.ReadTrackById(trackId); if (track == null) { return(0); } var trackReference = track.TrackReference; return(SubFingerprintDao.DeleteSubFingerprintsByTrackReference(trackReference) + TrackDao.DeleteTrack(trackReference)); }