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

            db.Print_Hardware.Remove(print_Hardware);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name,Solution_Id")] Print_Hardware print_Hardware)
 {
     if (ModelState.IsValid)
     {
         db.Entry(print_Hardware).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Solution_Id = new SelectList(db.Solutions, "Id", "Name", print_Hardware.Solution_Id);
     return(View(print_Hardware));
 }
        public ActionResult Create([Bind(Include = "Id,Name,Solution_Id")] Print_Hardware print_Hardware)
        {
            if (ModelState.IsValid)
            {
                db.Print_Hardware.Add(print_Hardware);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.Solution_Id = new SelectList(db.Solutions, "Id", "Name", print_Hardware.Solution_Id);
            return(View(print_Hardware));
        }
        // GET: Print_Hardware/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Print_Hardware print_Hardware = db.Print_Hardware.Find(id);

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

            if (print_Hardware == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Solution_Id = new SelectList(db.Solutions, "Id", "Name", print_Hardware.Solution_Id);
            return(View(print_Hardware));
        }