public ActionResult Edit(ItemType itemtype) { if (ModelState.IsValid) { db.Entry(itemtype).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(itemtype); }
public ActionResult Create(ItemType itemtype) { if (ModelState.IsValid) { db.VeevonautItemTypes.Add(itemtype); db.SaveChanges(); return RedirectToAction("Index"); } return View(itemtype); }