public ActionResult DeleteConfirmed(int id)
        {
            table1furniture table1furniture = db.table1furniture.Find(id);

            db.table1furniture.Remove(table1furniture);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "CustomerID,Brand,Price,RoomColor")] table1furniture table1furniture)
 {
     if (ModelState.IsValid)
     {
         db.Entry(table1furniture).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(table1furniture));
 }
        public ActionResult Create([Bind(Include = "CustomerID,Brand,Price,RoomColor")] table1furniture table1furniture)
        {
            if (ModelState.IsValid)
            {
                db.table1furniture.Add(table1furniture);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(table1furniture));
        }
        // GET: table1furniture/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            table1furniture table1furniture = db.table1furniture.Find(id);

            if (table1furniture == null)
            {
                return(HttpNotFound());
            }
            return(View(table1furniture));
        }
      // GET: table1furniture/Details/5
      public ViewResult Details(int?id)
      {
          if (id == null)
          {
              return(View("Error"));
          }
          table1furniture table1furniture = db.table1furniture.FirstOrDefault(a => a.CustomerID == id);

          if (table1furniture == null)
          {
              return(View("Error"));
          }
          return(View(table1furniture));
      }
      public ViewResult DeleteConfirmed(int?id)
      {
          if (id == null)
          {
              return(View("Error"));
          }
          table1furniture table1furniture = db.table1furniture.FirstOrDefault(a => a.CustomerID == id);

          if (table1furniture == null)
          {
              return(View("Error"));
          }
          db.Delete(table1furniture);

          return(View("Index"));
      }