// Add funkcija

        public void Add()
        {
            AddEdit addDialog = new AddEdit(null);

            if (addDialog.ShowDialog() == true)
            {
                movies.Add(addDialog.Movie);
                ctx.Movies.Add(addDialog.Movie);
            }
        }
        // Edit funkcija

        public void Edit()
        {
            if (selectedMovie == null)
            {
                MessageBox.Show("Nothing is selected", "Error!", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            else
            {
                var selectedMovie = this.selectedMovie;
                var editDialog    = new AddEdit(selectedMovie);

                if (editDialog.ShowDialog() == true)
                {
                }
            }
            ctx.SaveChanges();
        }