public ActionResult DeleteConfirmed(string id)
        {
            RAW_MATERIAL rAW_MATERIAL = db.RAW_MATERIAL.Find(id);

            db.RAW_MATERIAL.Remove(rAW_MATERIAL);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Material_ID,Material_Name,Material_Standard_Cost,Unit_Of_Measure")] RAW_MATERIAL rAW_MATERIAL)
 {
     if (ModelState.IsValid)
     {
         db.Entry(rAW_MATERIAL).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(rAW_MATERIAL));
 }
        public ActionResult Create([Bind(Include = "Material_ID,Material_Name,Material_Standard_Cost,Unit_Of_Measure")] RAW_MATERIAL rAW_MATERIAL)
        {
            if (ModelState.IsValid)
            {
                db.RAW_MATERIAL.Add(rAW_MATERIAL);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(rAW_MATERIAL));
        }
        // GET: RAW_MATERIAL/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            RAW_MATERIAL rAW_MATERIAL = db.RAW_MATERIAL.Find(id);

            if (rAW_MATERIAL == null)
            {
                return(HttpNotFound());
            }
            return(View(rAW_MATERIAL));
        }