示例#1
0
        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"));
        }
示例#2
0
 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));
 }
示例#3
0
        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));
        }
示例#4
0
        // 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));
        }