public ActionResult EndreAdmin(int id, Admin endreAdmin)
 {
     if(ModelState.IsValid)
     {
         var Admin = new AdminBLL();
         bool endringOk = Admin.endreAdmin(id, endreAdmin);
         if(endringOk)
         {
             return RedirectToAction("AdminListe");
         }
     }
     return View();
 }
 public ActionResult LeggTilAdmin(Admin innAdmin)
 {
     if(ModelState.IsValid)
     {
         var Admin = new AdminBLL();
         bool insertOk = Admin.leggTilAdmin(innAdmin);
         if(insertOk)
         {
             giveRole(innAdmin);
             return RedirectToAction("AdminListe");
         }
     }
     return View();
 }
 public ActionResult SlettAdmin(int id, Admin slettId)
 {
     if(ModelState.IsValid)
     {
         var Admin = new AdminBLL();
         bool slettOk = Admin.slettAdmin(id);
         if(slettOk)
         {
             return RedirectToAction("AdminListe");
         }
     }
     return View();
 }
 public ActionResult SlettAdmin(int id)
 {
     var AdminDB = new AdminBLL();
     Admin enAdmin = AdminDB.hentEnAdmin(id);
     return View(enAdmin);
 }
 public ActionResult EndreAdmin(int id)
 {
     var AdminDb = new AdminBLL();
     Admin enAdmin = AdminDb.hentEnAdmin(id);
     return View(enAdmin);
 }
 // GET: Admin
 public ActionResult AdminListe()
 {
     var AdminDb = new AdminBLL();
     List<Admin> hentAdmins = AdminDb.HentAlleAdmins();
     return View(hentAdmins);
 }
 public ActionResult AdminDetaljer(int id)
 {
     var AdminDb = new AdminBLL();
     var enAdmin = AdminDb.hentEnAdmin(id);
     return View(enAdmin);
 }