Exemplo n.º 1
0
 public ActionResult DeleteAdmin(int id, dbAdmins admin)
 {
     if (ModelState.IsValid)
     {
         bool deleteOK = _adminBLL.deleteAdmin(id);
         if (deleteOK)
         {
             return(RedirectToAction("ListAdmins"));
         }
     }
     return(View());
 }