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)); }
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)); }
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")); }
// 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)); }