public async Task <SpotifyWCF.SongsModel> GetSongsByCategory(string category) { var songs = new SpotifyWCF.SongsModel(); try { var request = new SpotifyWCF.GetListSongsBasedCategoryRequest { category = category }; var response = await _songService.GetListSongsBasedCategoryAsync(request); songs = response.GetListSongsBasedCategoryResult; } catch (Exception e) { Console.WriteLine(e.Message); } return(songs); }
public GetListSongsBasedCategoryResponse(SpotifyWCF.SongsModel GetListSongsBasedCategoryResult) { this.GetListSongsBasedCategoryResult = GetListSongsBasedCategoryResult; }