public ActionResult DeleteConfirmed(int id)
        {
            admDelregister admDelregister = db.admDelregisters.Find(id);

            db.admDelregisters.Remove(admDelregister);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "delregisterid,registerid,delregisternamn,beskrivning,kortnamn,inrapporteringsportal,slussmapp,skapaddatum,skapadav,andraddatum,andradav")] admDelregister admDelregister)
 {
     if (ModelState.IsValid)
     {
         db.Entry(admDelregister).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.registerid = new SelectList(db.admRegisters, "registerid", "registernamn", admDelregister.registerid);
     return(View(admDelregister));
 }
        // GET: admDelregisters/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            admDelregister admDelregister = db.admDelregisters.Find(id);

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

            if (admDelregister == null)
            {
                return(HttpNotFound());
            }
            ViewBag.registerid = new SelectList(db.admRegisters, "registerid", "registernamn", admDelregister.registerid);
            return(View(admDelregister));
        }