public ActionResult Edit(DataTypes DataTypes) { if (ModelState.IsValid) { db.Entry(DataTypes).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index", new { Id = DataTypes.Id }); } return View(DataTypes); }
public ActionResult Edit(Presentation presentation) { if (ModelState.IsValid) { db.Entry(presentation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(presentation)); }