Esempio n. 1
0
        public ActionResult Create(Evtable evtable)
        {
            if (ModelState.IsValid)
            {
                db.Evtables.Add(evtable);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(evtable);
        }
Esempio n. 2
0
 public ActionResult Edit(Evtable evtable)
 {
     if (ModelState.IsValid)
     {
         db.Entry(evtable).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(evtable);
 }