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

            db.ReleaseProducts.Remove(releaseProducts);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ReleaseID,ProductionID,TotalRelease,Year,Quarter,OrganizationID")] ReleaseProducts releaseProducts)
 {
     if (ModelState.IsValid)
     {
         db.Entry(releaseProducts).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.OrganizationID = new SelectList(db.Organization, "OrganizationID", "OrganizationName", releaseProducts.OrganizationID);
     ViewBag.ProductionID   = new SelectList(db.TypesProduction, "ProductionID", "ProductionName", releaseProducts.ProductionID);
     return(View(releaseProducts));
 }
        // GET: ReleaseProducts/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ReleaseProducts releaseProducts = db.ReleaseProducts.Find(id);

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

            if (releaseProducts == null)
            {
                return(HttpNotFound());
            }
            ViewBag.OrganizationID = new SelectList(db.Organization, "OrganizationID", "OrganizationName", releaseProducts.OrganizationID);
            ViewBag.ProductionID   = new SelectList(db.TypesProduction, "ProductionID", "ProductionName", releaseProducts.ProductionID);
            return(View(releaseProducts));
        }