public ActionResult DeleteConfirmed(int id)
        {
            Manage_Supplier manage_Supplier = db.Manage_Suppliers.Find(id);

            db.Manage_Suppliers.Remove(manage_Supplier);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "manage_supp_id,supplier_name,supplier_mobile,supplier_email,supplier_address,supplier_product_item,supply_date")] Manage_Supplier manage_Supplier)
 {
     if (ModelState.IsValid)
     {
         db.Entry(manage_Supplier).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.manage_supp_id = new SelectList(db.Reports, "report_id", "report_id", manage_Supplier.manage_supp_id);
     return(View(manage_Supplier));
 }
        // GET: Manage_Supplier/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Manage_Supplier manage_Supplier = db.Manage_Suppliers.Find(id);

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

            if (manage_Supplier == null)
            {
                return(HttpNotFound());
            }
            ViewBag.manage_supp_id = new SelectList(db.Reports, "report_id", "report_id", manage_Supplier.manage_supp_id);
            return(View(manage_Supplier));
        }