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