public ActionResult EditCustomer(int id, Kunde endreKunde) { if (loginCheck() == false) { return(RedirectToAction("LoggInn")); } if (ModelState.IsValid) { var kundeDb = new KundeBLL(); bool endringOK = kundeDb.changeCustomer(id, endreKunde); if (endringOK) { return(RedirectToAction("ListCustomers")); } } return(View()); }