public ActionResult Create(Movie movie )
 {
    if (ModelState.IsValid)
    {
        _db.Movies.Add(movie);
        _db.SaveChanges(); 
        return RedirectToAction("Index");
    }
     
         return View();
     
 }
        public ActionResult Edit(Movie movie)
        {
            if (ModelState.IsValid)
            {
                var original = _db.Movies.Find(movie.Id);
                original.Title = movie.Title;
                original.Director = movie.Director;
                _db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View();
        }