示例#1
0
        public IEnumerable <PlayListResponse> Listar(Guid idUsuario)
        {
            IEnumerable <PlayList> playListCollection = _repositoryPlayList.Listar(idUsuario);
            var response = playListCollection.ToList().Select(entidate => (PlayListResponse)entidate);

            return(response);
        }
        public IEnumerable <PlayListResponse> Listar(Guid idUsuario)
        {
            IEnumerable <PlayList> playListsCollection = _repositoryPlayList.Listar(idUsuario);
            // conversar explicita
            var response = playListsCollection.ToList().Select(x => (PlayListResponse)x);

            return(response);
        }
示例#3
0
 public IEnumerable <PlayListResponse> Listar(Guid idUsuario)
 {
     return(_repositorioPlayList.Listar(idUsuario).ToList().Select(x => (PlayListResponse)x));
 }