示例#1
0
        public LibraryPageModel GetLibrarySongs([FromBody] LibraryPageFilter filter)
        {
            var(totaNumber, songs) = _libraryService.GetLibrarySongs(filter);

            return(new LibraryPageModel()
            {
                Songs = songs.Select(s => SongWebConverter.ToModel(s, true)).ToList(),
                TotalNumber = totaNumber
            });
        }
        public List <SongModel> GetRecommendedSongs(BasicPageFilter filter)

        {
            return(_libraryService.GetRecommendedSongs(filter).Select(n => SongWebConverter.ToModel(n, false)).ToList());
        }