public ActionResult DeleteConfirmed(int id)
        {
            WorkStationType workStationType = db.WorkStationTypes.Find(id);

            db.WorkStationTypes.Remove(workStationType);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name,Description")] WorkStationType workStationType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(workStationType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(workStationType));
 }
        public ActionResult Delete(int id = 0)
        {
            WorkStationType workstationtype = db.WorkStationTypes.Find(id);

            if (workstationtype == null)
            {
                return(HttpNotFound());
            }
            return(View(workstationtype));
        }
 public ActionResult Edit(WorkStationType workstationtype)
 {
     if (ModelState.IsValid)
     {
         db.Entry(workstationtype).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(workstationtype));
 }
        public ActionResult Create([Bind(Include = "Id,Name,Description")] WorkStationType workStationType)
        {
            if (ModelState.IsValid)
            {
                db.WorkStationTypes.Add(workStationType);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(workStationType));
        }
        public ActionResult Create(WorkStationType workstationtype)
        {
            if (ModelState.IsValid)
            {
                db.WorkStationTypes.Add(workstationtype);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(workstationtype));
        }
        // GET: Facility/WorkStationTypes/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            WorkStationType workStationType = db.WorkStationTypes.Find(id);

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