Beispiel #1
0
        public ActionResult Create(Slide slides)
        {
            if (ModelState.IsValid)
            {
                db.Slides.Add(slides);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            CreateFrame(title);
            return View(slides);
        }
Beispiel #2
0
 public ActionResult Edit(Slide slides)
 {
     if (ModelState.IsValid)
     {
         db.Entry(slides).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(slides);
 }