public void AddSongToList(int listId, int songId, string notes = null, string newListName = null) { if (listId != 0) { Service.AddSongToList(listId, songId, notes ?? string.Empty); } else if (!string.IsNullOrWhiteSpace(newListName)) { var contract = new SongListForEditContract { Name = newListName, SongLinks = new[] { new SongInListEditContract { Song = new SongForApiContract { Id = songId }, Order = 1, Notes = notes ?? string.Empty } } }; songListQueries.UpdateSongList(contract, null); } }