/// <summary> /// Adds the image link and remove repeated. /// </summary> /// <returns>The image link and remove repeated.</returns> /// <param name="movies">Movies.</param> List <Results> AddImageLinkAndRemoveRepeated(List <Results> movies) { movies.ForEach((obj) => { if (string.IsNullOrEmpty(obj.FullImagePath) && !string.IsNullOrEmpty(obj.PosterPath)) { obj.FullImagePath = $"{settingsService.Get<string>("IMGURL")}w154{obj.PosterPath}"; resultsService.Update(obj); } }); movies.ForEach((obj) => { if (Movies != null && !Movies.Contains(obj)) { Movies.Add(obj); } }); return(movies); }