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