Exemple #1
0
        public ActionResult Edit([Bind(Include = "MovieId,Title,ReleaseDate,Description")] Movie movie)
        {
            if (ModelState.IsValid)
            {
                _db.Edit(movie);
                return(RedirectToAction("Index"));
            }
            var post = _db.GetPost();

            ViewBag.MovieId = new SelectList(post, "PostId", "Text", movie.MovieId);
            return(View(movie));
        }