public async void RemoveDownloadedEpisode(Episode episode) { if (episode != null) { await episode.DeleteDownloaded(); await LoadFavorites(); } }
public async void Execute(object parameter) { var episodeWithState = parameter as EpisodeWithState; Episode episode = episodeWithState?.Episode; if (episode == null) { episode = parameter as Episode; } if (episode == null) { return; } if (episode != null) { await episode.DeleteDownloaded(); } }