Example #1
0
 private void Edit(TeamProject_ShowMe.Movie.Movie movie)
 {
     using (TeamProject_ShowMe.MediaCenterContext db = new TeamProject_ShowMe.MediaCenterContext())
     {
         db.MovieRepository.UpdateMovie(movie);
     }
 }
Example #2
0
 private void Delete(TeamProject_ShowMe.Movie.Movie movie)
 {
     using (TeamProject_ShowMe.MediaCenterContext db = new TeamProject_ShowMe.MediaCenterContext())
     {
         db.MovieRepository.RemoveMovie(movie);
         adminMoviesList.ItemsSource = db.MovieRepository.Movies;
         db.MovieRepository.Load();
     }
 }