public ActionResult DeleteGoods(int id, Vare slettVare) { if (loginCheck() == false) { return(RedirectToAction("LoggInn")); } var vareDb = new VareBLL(); bool slettOK = vareDb.deleteGoods(id); if (slettOK) { return(RedirectToAction("ListCustomers")); } return(View()); }