public IActionResult DetailsTV(string data) { int id = to_int(data); var client = new RestClient(tMDB.TV_details(id)); var request = new RestRequest(Method.GET); request.AddParameter("undefined", "{}", ParameterType.RequestBody); IRestResponse response = client.Execute(request); TVData temp = new TVData(); if (response.IsSuccessful) { temp = JsonConvert.DeserializeObject <TVData>(response.Content); temp.poster_path = "https://image.tmdb.org/t/p/w300_and_h450_bestv2" + temp.poster_path; temp.backdrop_path = "https://image.tmdb.org/t/p/w1400_and_h450_face" + temp.backdrop_path; } return(View(temp)); }