public ActionResult Edit(int id, MovieEdit movieEdit) { try { _context.Entry(movieEdit).State = System.Data.Entity.EntityState.Modified; _context.SaveChanges(); } catch { } return(RedirectToAction("EditMovieStatus")); }
public ActionResult AddMovie(MovieEdit Me) { if (ModelState.IsValid) { try { _context.movieedit.Add(Me); _context.SaveChanges(); } catch { } } return(View()); }