public int save(Movie movie)
 {
     using (var context = new  MoviesDBContext()){
         context.Movies.Add(movie);
         return(context.SaveChanges());
     }
 }
 public List <Movie> getMovies()
 {
     using (var context = new MoviesDBContext())
     {
         return(context.Movies.ToList());
     }
 }