public IActionResult ON_TV() { var client = new RestClient(tMDB.get_on_tv()); var request = new RestRequest(Method.GET); request.AddParameter("undefined", "{}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); if (response.IsSuccessful) { var temp = JsonConvert.DeserializeObject <TVArray>(response.Content); for (int i = 0; i < temp.results.Length; i++) { 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; temp.results[i].media_type = "tv"; } allData.tVArray = temp; } return(View("PopularTV", allData)); }