示例#1
0
 public ActionResult Edit([Bind(Include = "id,exception_name,exception_code,exception_description")] tblm_notorder_reason tblmNotorderReason)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblmNotorderReason).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblmNotorderReason));
 }
示例#2
0
        public ActionResult Create([Bind(Include = "id,exception_name,exception_code,exception_description")] tblm_notorder_reason tblmNotorderReason)
        {
            if (ModelState.IsValid)
            {
                db.tblm_notorder_reason.Add(tblmNotorderReason);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tblmNotorderReason));
        }
示例#3
0
        public ActionResult DeleteConfirmed(int id)
        {
            tblm_notorder_reason tblmNotorderReason = db.tblm_notorder_reason.Find(id);

            if (tblmNotorderReason != null)
            {
                db.tblm_notorder_reason.Remove(tblmNotorderReason);
            }
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
示例#4
0
        // GET: DBhouseOrderExceptionReason/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tblm_notorder_reason tblmNotorderReason = db.tblm_notorder_reason.Find(id);

            if (tblmNotorderReason == null)
            {
                return(HttpNotFound());
            }
            return(View(tblmNotorderReason));
        }