public ActionResult DeleteKategori(int id) { if (ModelState.IsValid) { KP.delete(KP.get(id)); } return(RedirectToAction("index")); }