public ActionResult DeleteConfirmed(decimal id) { BOK_STATUS bOK_STATUS = db.BOK_STATUS.Find(id); db.BOK_STATUS.Remove(bOK_STATUS); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID_STATUS,OPIS")] BOK_STATUS bOK_STATUS) { if (ModelState.IsValid) { db.Entry(bOK_STATUS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bOK_STATUS)); }
public ActionResult Create([Bind(Include = "ID_STATUS,OPIS")] BOK_STATUS bOK_STATUS) { if (ModelState.IsValid) { db.BOK_STATUS.Add(bOK_STATUS); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(bOK_STATUS)); }
// GET: BOK_STATUS/Delete/5 public ActionResult Delete(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } BOK_STATUS bOK_STATUS = db.BOK_STATUS.Find(id); if (bOK_STATUS == null) { return(HttpNotFound()); } return(View(bOK_STATUS)); }