An error occurred while updating the entries. See the InnerException for details.
public ActionResult Create() { return View(); } [AcceptVerbs(HttpVerbs.Post)] public ActionResult Create([Bind(Exclude="Id")] Movie movieToCreate) { if (!ModelState.IsValid) return View(); _db.AddToMovies(movieToCreate); _db.SaveChanges(); //Error Line return RedirectToAction(movieToCreate); }
movieToCreate.DateProperty=DateTime.Now; _db.AddToMovies(movieToCreate); _db.SaveChanges();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)