예제 #1
0
        //Hämtar alla podcasts i XML-filen
        public List <Podcast> GetAll()
        {
            List <Podcast> podcastListToBeReturned = new List <Podcast>();

            podcastListToBeReturned = dataManager.DeserializePodcast();
            return(podcastListToBeReturned);
        }
예제 #2
0
        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);
        }