//Hämtar alla podcasts i XML-filen public List <Podcast> GetAll() { List <Podcast> podcastListToBeReturned = new List <Podcast>(); podcastListToBeReturned = dataManager.DeserializePodcast(); return(podcastListToBeReturned); }
public List <Podcast> HamtaAlla() { List <Podcast> podcastListToBeReturned = new List <Podcast>(); try { podcastListToBeReturned = dataManager.DeserializePodcast(); } catch (SerializerException e) { Console.WriteLine(DateTime.Now + " " + e.Message); } return(podcastListToBeReturned); }