Ejemplo n.º 1
0
        public Dictionary <string, object> SelSongMenuByID(int id)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();
            var m = SongMenuService.SelSongMenuByID(id);

            if (m != null)
            {
                string   songID      = m.GetType().GetProperty("M_SongId").GetValue(m).ToString();
                string[] songMenuNum = songID?.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                var      song        = SongListService.SelSongListByMenu(songMenuNum);
                dic.Add("songMenuInfo", m);
                dic.Add("songInfo", song);
            }
            return(dic);
        }
Ejemplo n.º 2
0
        public object GetAlbumByID(int id)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();
            var albun = AlbumService.GetAlbumByID(id);

            if (albun != null)
            {
                string   songID      = albun.GetType().GetProperty("A_Song").GetValue(albun).ToString();
                string[] songMenuNum = songID?.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
                var      song        = SongListService.SelSongListByMenu(songMenuNum);
                dic.Add("AlbumInfo", albun);
                dic.Add("SongList", song);
            }
            return(dic);
        }