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