コード例 #1
0
        public List <string> GetAlbumsList()
        {
            List <string> albums = new List <string>();

            var albumList = _repo.FindAll().DistinctBy(x => x.Album).ToList();

            albumList.ForEach(x => albums.Add(x.Album));

            albums.Sort();

            return(albums);
        }