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