public ActionResult DeleteConfirmed(int id)
        {
            HullMaterial hullmaterial = db.HullMaterials.Find(id);

            db.HullMaterials.Remove(hullmaterial);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,HullMaterial1")] HullMaterial hullmaterial)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hullmaterial).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hullmaterial));
 }
        public ActionResult Create([Bind(Include = "ID,HullMaterial1")] HullMaterial hullmaterial)
        {
            if (ModelState.IsValid)
            {
                db.HullMaterials.Add(hullmaterial);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(hullmaterial));
        }
        // GET: /HullMaterial/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HullMaterial hullmaterial = db.HullMaterials.Find(id);

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