Ejemplo n.º 1
0
 public Title Post([FromBody]JObject jObject)
 {
     string imdbId = (string)jObject["imdbId"];
     TitleDetailsResponse titleDetails = titleService.GetTitleDetailsFromTmdb(imdbId);
     Title title = titleService.ParseTitle(titleDetails);
     titleRepository.Add(title);
     List<TitleCredit> titleCredits = personService.GetTitleCredits(title.Id, title.TmdbId);
     titleCreditRepository.AddRange(titleCredits);
     return title;
 }