Exemplo n.º 1
0
        public List <Netflix.Person> GetPeople(string name)
        {
            var x = new Netflix.Person {
                Name = "Dilbert"
            };
            var y = new Netflix.Person {
                Name = "Bob Dylan"
            };

            return(new List <Netflix.Person> {
                x, y
            });
        }
 public List <Netflix.Title> GetTitlesFromPeople(Netflix.Person actor)
 {
     try
     {
         var uri      = new System.Uri(@"http://odata.netflix.com/Catalog");
         var catalog  = new Netflix.NetflixCatalog(uri);
         var linqData = catalog.People.Where(p => p.Id == actor.Id).SelectMany(p => p.TitlesActedIn);
         var data     = linqData.ToList();
         return(data);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }