/// <summary> /// Saves changes to the movie instance /// </summary> public void saveMovie() { bool isSend = false; if (Movie.isValid) { isSend = Controller.Post(Movie); } if (isSend) { MovieInfoView view = new MovieInfoView() { DataContext = childViewModel }; childViewModel.Info = "Film o tytule '" + Movie.MovieTitle + "' zostaĆ zapisany w bazie danych."; MovieView.GetInstance().Close(); view.ShowDialog(); } }