示例#1
0
 public ActionResult DeleteAdmin(int id, AdminBruker slettKunde)
 {
     if (loginCheck() == false) { return RedirectToAction("LoggInn"); }
     var adminDb = new AdminBLL();
     bool slettOK = adminDb.deleteAdmin(id);
     if (slettOK)
     {
         return RedirectToAction("ListAdmins");
     }
     return View();
 }