示例#1
0
        // GET: Movies
        public ActionResult Movies()
        {
            var movie = new Movie();

            return(View(movie));
        }
示例#2
0
 public ActionResult Create(Movie movie)
 {
     _context.Movies.Add(movie);
     _context.SaveChanges();
     return(RedirectToAction("Movies"));
 }