public MovieDetailsViewModel(MovieDetails window, Movie currentMovie) { _movieDetailsWin = window; _currentMovie = _dALMovie.GetMovieById(currentMovie.Id); _currentDistributor = _dALDistributor.GetDistributorById(_currentMovie.Distributor_Id); _currentDirector = _dALDirector.GetDirectorById(_currentMovie.Director_Id); director = _currentDirector.Name + " " + _currentDirector.Surname; distributor = _currentDistributor.Name; duration = _currentMovie.Duration.ToString() + "min"; description = _currentMovie.Desctiprion; title = _currentMovie.Title; _showsMovies = _currentMovie.ShowsMovies.ToList(); _movieReviews = _dALReview.AllReviewsForMovie(_currentMovie.Id); _movieFestivalAwards = _dALAward.GetAwardsForMovie(_currentMovie.Id); metaScore = _currentMovie.MetaScore; }
public List <MovieFestivalAward> GetAwardsForMovie(int movieId) { return(_dALAward.GetAwardsForMovie(movieId)); }