public ActionResult DeleteConfirmed(int id)
        {
            admForvantadfil admForvantadfil = db.admForvantadfils.Find(id);

            db.admForvantadfils.Remove(admForvantadfil);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "forvantadfilid,filkravid,foreskriftsid,filmask,regexp,obligatorisk,tom,skapaddatum,skapadav,andraddatum,andradav")] admForvantadfil admForvantadfil)
 {
     if (ModelState.IsValid)
     {
         db.Entry(admForvantadfil).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(admForvantadfil));
 }
        // GET: admForvantadfils/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            admForvantadfil admForvantadfil = db.admForvantadfils.Find(id);

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