public ActionResult DeleteConfirmed(int id) { ITEMCODE_MAS_NS iTEMCODE_MAS_NS = db.ITEMCODE_MAS_NS.Find(id); db.ITEMCODE_MAS_NS.Remove(iTEMCODE_MAS_NS); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "MAS,NETSUITE,DateCreated,DateUpdated,id")] ITEMCODE_MAS_NS iTEMCODE_MAS_NS) { if (ModelState.IsValid) { db.Entry(iTEMCODE_MAS_NS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(iTEMCODE_MAS_NS)); }
public ActionResult Create([Bind(Include = "MAS,NETSUITE,DateCreated,DateUpdated,id")] ITEMCODE_MAS_NS iTEMCODE_MAS_NS) { if (ModelState.IsValid) { db.ITEMCODE_MAS_NS.Add(iTEMCODE_MAS_NS); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(iTEMCODE_MAS_NS)); }
// GET: ITEMCODE/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ITEMCODE_MAS_NS iTEMCODE_MAS_NS = db.ITEMCODE_MAS_NS.Find(id); if (iTEMCODE_MAS_NS == null) { return(HttpNotFound()); } return(View(iTEMCODE_MAS_NS)); }