Exemplo n.º 1
0
        public void Save()
        {
            MusicAlbumXmlDataService musicAlbumXmlDataService = new MusicAlbumXmlDataService();

            using (musicAlbumXmlDataService)
            {
                musicAlbumXmlDataService.Write(_musicAlbums);
            }
        }
Exemplo n.º 2
0
        public MusicAlbumRepository()
        {
            MusicAlbumXmlDataService musicAlbumXmlDataService = new MusicAlbumXmlDataService();

            using (musicAlbumXmlDataService)
            {
                _musicAlbums = musicAlbumXmlDataService.Read() as List <MusicAlbum>;
            }
        }