public ActionResult Insert(Movie movie) { if (Session["username"] == null) { return(RedirectToAction("../Login/Index")); } if (ModelState.IsValid) { //insere novo ou edita filme no DB MovieDAO.Insert(movie); return(View("Index", MovieDAO.FindAll())); } ViewBag.Genre = GenreDAO.FindAll(); return(View("Insert", movie)); }