public FilmViewModel() { CommandAddComment = new RelayCommand(CommandAddCommentExecute); CommandReturn = new RelayCommand <Page>(CommandReturnExecute); Messenger.Default.Register <MovieNET.User>(this, (user_co) => { User_co = user_co; }); Messenger.Default.Register <int>(this, (ID_movie) => { id_movie = ID_movie; MovieSelected = serviceClient.SelectOneMovie(id_movie); if (MovieSelected != null) { MovieType = serviceClient.SelectOneMovieType(MovieSelected.Id_type); MovieDirector = serviceClient.SelectOneDirector(MovieSelected.Id_director); MovieImage = serviceClient.SelectOneImage(MovieSelected.Id_image); MovieTitle = MovieSelected.Title; MovieSynopsis = MovieSelected.Synopsis; MovieDurationHours = MovieSelected.Duration.Hours; MovieDurationMin = MovieSelected.Duration.Minutes; MovieDurationSec = MovieSelected.Duration.Seconds; ListActor = serviceClient.SelectActorByMovie(id_movie); ListComment = serviceClient.SelectCommentByMovie(id_movie); rating = serviceClient.SelectRating(id_movie); Title = MovieTitle; Synopsis = MovieSynopsis; Image = MovieImage.URL; Director = MovieDirector.Firstname; LDirector = MovieDirector.Lastname; Type = MovieType.Type; Note = rating; } }); }