Пример #1
0
 public ActionResult Edit(MUDBugRestart mudbugrestart)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mudbugrestart).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(mudbugrestart);
 }
Пример #2
0
        public ActionResult Create(MUDBugRestart mudbugrestart)
        {
            if (ModelState.IsValid)
            {
                db.MUDBugRestarts.Add(mudbugrestart);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(mudbugrestart);
        }