public ActionResult AddMovie(IMDB movie)
 {
     if (ModelState.IsValid)
     {
         DbRepository.AddMovie(movie);
         DbRepository.Save();
     }
     return RedirectToAction("MovieIndex");
 }
 public ActionResult UpdateMovie(IMDB movie)
 {
     this.DbRepository.UpdateMovie(movie);
     DbRepository.Save();
     return RedirectToAction("MovieIndex");
 }
 public void UpdateMovie(IMDB movie)
 {
     _imdbContext.Entry(movie).State = System.Data.Entity.EntityState.Modified;
 }
 public void AddMovie(IMDB movie)
 {
     _imdbContext.IMDBs.Add(movie);
 }