public List <Episode> GetAll(int index) { try { podcastList = dataManager.Deserialize(); Podcast podcast = podcastList[index]; episodeList = podcast.Episodes; } catch (ArgumentOutOfRangeException) { } return(episodeList); }
public List <Podcast> GetAll() { List <Podcast> returnPodcastList = new List <Podcast>(); try { returnPodcastList = dataManager.Deserialize(); } catch (DuplicateException ex) { Console.WriteLine("No list to return." + "\n" + ex.Message); } return(returnPodcastList); }