Ejemplo n.º 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
            });
        }
Ejemplo n.º 2
0
        public List <SongModel> GetRecommendedSongs(BasicPageFilter filter)

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