public ActionResult Create(DataTypes DataTypes)
        {
            var errors = ModelState.GetErrors();
            db.Examples.Add(DataTypes);
            db.SaveChanges();
            return RedirectToAction("Index", new { id = DataTypes.PresentationId });

            //if (ModelState.IsValid)
            //{
            //    db.Examples.Add(DataTypes);
            //    db.SaveChanges();
            //    return RedirectToAction("Index", new { Id = DataTypes.PresentationId });
            //}

            //return View(DataTypes);
        }
 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);
 }