public ActionResult DeleteConfirmed(string id)
        {
            Produced_In produced_In = db.Produced_In.Find(id);

            db.Produced_In.Remove(produced_In);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "producedinID,productID,workcenterID")] Produced_In produced_In)
 {
     if (ModelState.IsValid)
     {
         db.Entry(produced_In).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.productID    = new SelectList(db.Products, "productID", "productDescription", produced_In.productID);
     ViewBag.workcenterID = new SelectList(db.Work_Center, "workcenterID", "workcenterLocation", produced_In.workcenterID);
     return(View(produced_In));
 }
        // GET: Produced_In/Details/5
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Produced_In produced_In = db.Produced_In.Find(id);

            if (produced_In == null)
            {
                return(HttpNotFound());
            }
            return(View(produced_In));
        }
        // GET: Produced_In/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Produced_In produced_In = db.Produced_In.Find(id);

            if (produced_In == null)
            {
                return(HttpNotFound());
            }
            ViewBag.productID    = new SelectList(db.Products, "productID", "productDescription", produced_In.productID);
            ViewBag.workcenterID = new SelectList(db.Work_Center, "workcenterID", "workcenterLocation", produced_In.workcenterID);
            return(View(produced_In));
        }