Example #1
0
        public void delete(string name)
        {
            FunctionController fc    = new FunctionController();
            AlbumDAO           aDAO  = new AlbumDAO();
            List <SongDTO>     songs = new List <SongDTO>();

            songs = fc.getAllSongsByAlbum(name);
            foreach (SongDTO song in songs)
            {
                Song s = new Song(song.getName(), "", "", "", "");
                s.delete(song.getName());
            }
            aDAO.deleteAlbum(name);
        }
Example #2
0
        public void delete(string name)
        {
            FunctionController fc     = new FunctionController();
            InterpretDAO       iDAO   = new InterpretDAO();
            List <string>      albums = new List <string>();

            albums = fc.getAlbumsByInterpret(name);
            foreach (string album in albums)
            {
                Album a = new Album(album, "", "", "", "");
                a.delete(album);
            }
            iDAO.deleteInterpret(name);
        }