public ActionResult EndreKunde(int id, Kunde endreKunde)
        {
            bool endringOK = _adminBLL.endreKunde(id, endreKunde);

            if (endringOK)
            {
                return(RedirectToAction("ListeKunder"));
            }
            return(View());
        }
 public ActionResult EndreKunde(int id, Kunde endreKunde)
 {
     if (ModelState.IsValid)
     {
         bool endringOK = _adminBLL.endreKunde(id, endreKunde);
         if (endringOK)
         {
             return(RedirectToAction("Liste"));
         }
     }
     return(View());
 }