/// <summary> /// Get all tv series lists /// </summary> /// <returns>TvViewModel</returns> public ActionResult Index(int id) { MovieTrailor model = new MovieTrailor(); var trailors = _movieApi.GetTrailers(id); if (trailors != null && trailors.results.Count > 0) { model.VideoKey = trailors.results[0].key; } return(View(model)); }
public TrailerDTO GetTrailers(int movieId) { var video = _movieApi.GetTrailers(movieId); return(video); }