Esempio n. 1
0
        public IActionResult GetPersonImages(int movieId)
        {
            MovieCredits movieCredits = _creditService.GetCreditsByMovieId(movieId);

            List <PersonImages> personImagesLsit = new List <PersonImages>();

            foreach (var cast in movieCredits.cast)
            {
                PersonImages personImages = _personImagesService.GetPersonImagesByPersonId(cast.id);
                personImagesLsit.Add(personImages);
            }

            return(Ok(personImagesLsit));
        }