public ActionResult DeleteConfirmed(int id) { INTERNALBOOKS iNTERNALBOOKS = db.INTERNALBOOKS.Find(id); db.INTERNALBOOKS.Remove(iNTERNALBOOKS); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "BOOKID,BOOKSTATE,ISBN,SHELFNUMBER,FLOOR")] INTERNALBOOKS iNTERNALBOOKS) { if (ModelState.IsValid) { db.Entry(iNTERNALBOOKS).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(iNTERNALBOOKS)); }
public ActionResult Create([Bind(Include = "BOOKID,BOOKSTATE,ISBN,SHELFNUMBER,FLOOR")] INTERNALBOOKS iNTERNALBOOKS) { if (ModelState.IsValid) { db.INTERNALBOOKS.Add(iNTERNALBOOKS); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(iNTERNALBOOKS)); }
// GET: INTERNALBOOKS/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } INTERNALBOOKS iNTERNALBOOKS = db.INTERNALBOOKS.Find(id); if (iNTERNALBOOKS == null) { return(HttpNotFound()); } return(View(iNTERNALBOOKS)); }