public Task <int> SaveTrackAsync(BasicAudioTrack track) { if (track.Id != 0) { return(_database.UpdateAsync(track)); } else { return(_database.InsertAsync(track)); } }
public virtual Task <int> SaveTrackAsync(BasicAudioTrack track) { /* * if (track.Id != null) * { * return _database.UpdateAsync(track); * } * else * { * * } */ return(_database.InsertAsync(track)); }