public IActionResult Top_Movie() { var client = new RestClient(tMDB.get_top_movie()); var request = new RestRequest(Method.GET); request.AddParameter("undefined", "{}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); if (response.IsSuccessful) { var temp = JsonConvert.DeserializeObject <MovieArray>(response.Content); for (int i = 0; i < temp.results.Length; i++) { temp.results[i].media_type = "movie"; temp.results[i].poster_path = "https://image.tmdb.org/t/p/w300_and_h450_bestv2" + temp.results[i].poster_path; temp.results[i].backdrop_path = "https://image.tmdb.org/t/p/w1400_and_h450_face" + temp.results[i].backdrop_path; } allData.movieArray = temp; return(View("PopularMovie", allData)); } else { return(null); } }