Esempio n. 1
0
        public ActionResult DeleteConfirmed(string id)
        {
            table2furniture table2furniture = db.table2furniture.Find(id);

            db.table2furniture.Remove(table2furniture);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
        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));
        }
Esempio n. 4
0
        // 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));
        }