public ActionResult Create(Movie movie)
        {
            try
            {
                _repo.Add(movie);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
예제 #2
0
 public void Add(Movie movie)
 {
     _movies.Add(movie);
 }