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);
 }
예제 #2
0
        public ActionResult Edit(Presentation presentation)
        {
            if (ModelState.IsValid)
            {
                db.Entry(presentation).State = EntityState.Modified;
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(presentation));
        }