public static BoxArt BoxArts(int movieID) { MovieDbContext db = new MovieDbContext(); BoxArt boxArts = new BoxArt(); var boxArtList = db.BoxArts.Where( item => item.movie_ID == movieID).ToList(); boxArts = boxArtList[0]; return boxArts; }
public static BoxArt CreateMovieBoxart(int movieID, Title title) { BoxArt boxArt = new BoxArt { movie_ID = movieID, boxart_38 = title.BoxArt38, boxart_64 = title.BoxArt64, boxart_110 = title.BoxArt110, boxart_124 = title.BoxArt124, boxart_150 = title.BoxArt150, boxart_166 = title.BoxArt166, boxart_88 = title.BoxArt88, boxart_197 = title.BoxArt197, boxart_176 = title.BoxArt176, boxart_284 = title.BoxArt284, boxart_210 = title.BoxArt210 }; return boxArt; }