コード例 #1
0
        public async Task GetCast(List <Movie> movies)
        {
            foreach (Movie movie in movies)
            {
                try
                {
                    movie.ListCast = await _movieController.GetCastByIdAsync(movie.Id);

                    movie.Cast = movie.CastToString();
                }
                catch (Exception e)
                {
                    movie.ListCast = null;
                }
                this.Movies = movies;
            }
        }