public ActionResult DeleteConfirmed(string productID, string workCenterID)
        {
            PRODUCED_IN pRODUCED_IN = db.PRODUCED_IN.Find(productID, workCenterID);

            db.PRODUCED_IN.Remove(pRODUCED_IN);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Product_ID,Work_Center_ID,Production_Date,Product_Quantity")] PRODUCED_IN pRODUCED_IN)
 {
     if (ModelState.IsValid)
     {
         db.Entry(pRODUCED_IN).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.Product_ID     = new SelectList(db.PRODUCT, "Product_ID", "Product_Description", pRODUCED_IN.Product_ID);
     ViewBag.Work_Center_ID = new SelectList(db.WORK_CENTER, "Work_Center_ID", "Work_Center_Location", pRODUCED_IN.Work_Center_ID);
     return(View(pRODUCED_IN));
 }
        // GET: PRODUCED_IN/Details/5
        public ActionResult Details(string productID, string workCenterID)
        {
            if (productID == null || workCenterID == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PRODUCED_IN pRODUCED_IN = db.PRODUCED_IN.Find(productID, workCenterID);

            if (pRODUCED_IN == null)
            {
                return(HttpNotFound());
            }
            return(View(pRODUCED_IN));
        }
        // GET: PRODUCED_IN/Edit/5
        public ActionResult Edit(string productID, string workCenterID)
        {
            if (productID == null || workCenterID == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            PRODUCED_IN pRODUCED_IN = db.PRODUCED_IN.Find(productID, workCenterID);

            if (pRODUCED_IN == null)
            {
                return(HttpNotFound());
            }
            ViewBag.Product_ID     = new SelectList(db.PRODUCT, "Product_ID", "Product_Description", pRODUCED_IN.Product_ID);
            ViewBag.Work_Center_ID = new SelectList(db.WORK_CENTER, "Work_Center_ID", "Work_Center_Location", pRODUCED_IN.Work_Center_ID);
            return(View(pRODUCED_IN));
        }