public ActionResult DeleteConfirmed(int id)
        {
            FixedTE_details fixedTE_details = db.FixedTE_details.Find(id);

            db.FixedTE_details.Remove(fixedTE_details);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "id,name,type_id")] FixedTE_details fixedTE_details)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fixedTE_details).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.type_id = new SelectList(db.FixedTE_types, "id", "name", fixedTE_details.type_id);
     return(View(fixedTE_details));
 }
        // GET: FixedTE_details/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            FixedTE_details fixedTE_details = db.FixedTE_details.Find(id);

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

            if (fixedTE_details == null)
            {
                return(HttpNotFound());
            }
            ViewBag.type_id = new SelectList(db.FixedTE_types, "id", "name", fixedTE_details.type_id);
            return(View(fixedTE_details));
        }