void initFunc(string id)
        {
            BL.Movie movieLogic = new BL.Movie();

            movie = movieLogic.findMovie(id);

            txtTitle.Text             = movie.title;
            txtDescription.Text       = movie.description;
            txtDuration.Text          = movie.duration;
            txtGenre.Text             = movie.genre;
            txtDirector.Text          = movie.director;
            txtRating.Text            = movie.rating;
            dtRelaseDate.SelectedDate = DateTime.Parse(movie.releaseDate);
        }
 private void BtnUpdate_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         BL.Movie    movieLogic = new BL.Movie();
         Model.Movie movie      = movieLogic.findMovie(txtId.Text);
         UpdateMovie um         = new UpdateMovie(txtId.Text);
         um.Show();
         this.Close();
     }
     catch (Exception err)
     {
         MessageBox.Show(err.Message);
     }
 }